I have a fairly simple piece of code

            Document document = new Document(PageSize.A6);
            PdfWriter writer = PdfWriter.GetInstance(document,
File.Open(@"C:\development\somefile.pdf", FileMode.CreateNew,
FileAccess.ReadWrite));
            writer.ViewerPreferences = PdfWriter.PrintScalingNone;
            document.AddTitle("This is the title.");
            document.Open();
            document.Add(new Paragraph("text text text text text text text
text text text text text text text", new Font(Font.NORMAL, 12)));
            document.Close();

I want to set the viewer print scaling to none. However after executing
this code and opening the PDF and Adobe Acrobat and clicking the print
button 'Print Scaling' field on the popup print dialog is set to 'Fit to
Printable Area' not 'None'.

Am I doing something wrong or is there something else I need to do?

Craig.
------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
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