Lana Slisenko wrote: > When I try to do the following: > > writer.setViewerPreferences(PdfWriter.PrintScalingNone); > > I get 500 error "PdfWriter.PrintScalingNone cannot be resolved".
How were you able to compile your code if PdfWriter.PrintScalingNone can't be resolved? Do you have the correct iText in your CLASSPATH and ONLY the correct iText (not two copies of a different version). > Did you get rid of this preference and forgot to update the > documentation? Is there a replacement for this? If we would have gotten rid of it, you wouldn't have been able to compile your code! > I tried to pass in (1 << 21) into the setViewerPreferences method, I > don't get an error, but the print dialog still displays Page Scaling as > "Shrink To Printable Area" instead of "None". I've also found a post > somewhere saying that it should be (1 << 24) - I've tried that too - no > luck. Your problem is probably elsewhere. The 500 error tells me you're writing a web app. Try a standalone example and see if the problem persists. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
