Jump to content

PDF Printing


Recommended Posts

I've had a problem with printing out PDF files under IE for quite a while now. Some time ago it switched from using the nice single-up page layout to a weird two-up page layout with a "fold here" line down the middle. What was weird was that this happened only on IE and not on Firefox and there appeared to be no way to tell GC which layout to use. Additionally, there seem to be numerous threads complaining that the two-up format suffers from issues -- namely cutting off or corrupting the paging layout so as to render it useless for many situations where a page writeup is lengthy.


I think I finally figured out what's going on ... there's a javascript call to a function called "pl" under the print to PDF links. On Firefox, Opera, and Safari, this causes a URL reference to be built based on page guid which looks something like this (this one specifically for my cache GC166AM):




Invoking this directly from Firefox -or- cutting/pasting it into an IE window yields the nice familiar single-up page layout.


If you run this function from an IE browser however, the following link is produced:




Note the subtle, but very important change of the string "ampersand lt" with the character "less than" (in other words, the interpretation of the HTML symbol code for "less than" right before the word "letter" in the URL string.


I believe this is a BUG. Probably in IE not honoring a quoting context in Javascript.


Are any of the site developers out there listening? Can you fix this -- perhaps changing the "pl" argument string to use something other than the variable name "lt" as the parameter? I would love to have to correct functionality for printing under IE back again.

Edited by Lasagna
Link to comment

I agree ... the semi-colon should be needed before it get's recognized as HTML ... clearly yet another Javascript weirdness related to IE.


For the record, I am running IE7, but have also reproduced this on IE6 as well. Every other browser (Safari, Opera, Firefox) that I've tried correctly process es the string and doesn't do the substitution.


Look forward to a fix.

Link to comment

Was there any response to the different layouts from IE and Firefox? I like the two page "fold here" I get from IE but my wife uses Firefox and is frustrated at the single page layout. which is supposed to be the default or intended layout?


- Andy :)



Link to comment

Very strange...


had a little hack around and the following does work with IE:


+ lc + '&pt=full&amp;lt=letter&decrypt='+


But breaks Firefox which does not encode. The only solution I've found is to move the lt attribute to the start:


cache_details_print.aspx?lt=letter&guid=' + guid +


I quite liked the two page result from IE, but as others have pointed out it does corrupt some listings B)


- Andy B)




Ps would be nice having dh=true B)

Edited by WackyB
Link to comment
This topic is now closed to further replies.
  • Create New...