Since upgrading to Lucee my cfdocument scales the page up about 30%. This makes the pdf document too big to print and instead of 1 page it is now 2 pages. Because the pdf needs to mimic a government document this won’t work. Also, the end users are not particularily computer saavy and telling them how to print an html document isn’t a good answer either. Here is a blank version of the page before it is populated with the student information: https://onlinenailclass.com/pdftest.cfm
Is there a workaround for cfdocument scale=“” ? And yes, I did add this.pdf.type = “classic”; to my application .cfc but got this error:
Message: class sun.net.www.protocol.https.HttpsURLConnectionImpl cannot be cast to class com.sun.net.ssl.HttpsURLConnection (sun.net.www.protocol.https.HttpsURLConnectionImpl and com.sun.net.ssl.HttpsURLConnection are in module java.base of loader ‘bootstrap’)
Maybe there are others with more experience with pdf than I have. Maybe @Jamo can help a little, because I know from this Stackoverflow post that he has created a customtag with a pdf commandline tool in the past. Sure there is a way to get this working.
if your not using the “classic” version, and instead using the new version which is flying saucer which supports css 2.1 and some higher you can try this style addtion.
Thanks to everyone who contributed. The solution ended up combining the suggestions. I had to move all of the code within the cfdocument declaration, in the old days we just enclosed the body portion. Specifying the pagewidth and pageheight in the cfdocument tag worked as long as all the rest of the css was inlined. Then I found that the tables were being messed up because I hadn’t specified a font or font size - pushing the text boxes beyond the original (old) design.
Well, if things didn’t break occasionally this would be too easy and everyone would do it Thanks for all your help!