I had a similar problem. When I used:

      writer.setViewerPreferences(PdfWriter.PrintScalingNone);

The print scaling was not being set properly. I traced through the itext
code and I think there is a bug there. To fix it, I explicitly set the
value:

      writer.addViewerPreference(PdfName.PRINTSCALING, PdfName.NONE);


Now when I open the pdf in Adobe the default print scaling value is 'None'.
Hope this helps anyone who is running into the same issue.

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PDF-Page-Scaling-tp2137333p3833324.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to