I have changed the code to use AddViewerPreference but it also doesn't seem
to work
Document document = new Document(PageSize.A6);
PdfWriter writer = PdfWriter.GetInstance(document,
File.Open(@"e:\somefile.pdf", FileMode.CreateNew, FileAccess.ReadWrite));
writer.AddViewerPreference(iTextSharp.text.pdf.PdfName.PRINTSCALING,
iTextSharp.text.pdf.PdfName.NONE);
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();
Craig
On Mon, Oct 29, 2012 at 7:26 PM, iText Info <[email protected]> wrote:
> Op 28/10/2012 12:00, Craig van Nieuwkerk schreef:
>
> writer.ViewerPreferences = PdfWriter.PrintScalingNone;
>
>
> I don't know about iTextSharp, but the corresponding syntax in iText
> wouldn't work either.
> The syntax was changed to
>
> writer.addViewerPreference(PdfName
> <http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfName.html>.PRINTSCALING,
> PdfName
> <http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfName.html>.NONE);
>
> a while ago.
>
>
> ------------------------------------------------------------------------------
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
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