PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Force PDF document to print only [page scaling = none] https://forum.pdfsharp.net/viewtopic.php?f=2&t=2625 |
Page 1 of 1 |
Author: | Zeeshanef [ Sun Oct 27, 2013 1:55 pm ] | ||
Post subject: | Force PDF document to print only [page scaling = none] | ||
Is there any way that I can set my PDFdocument to default [Page Scaling = None] instead 'Fit to Printable area' or 'Shrink to printable area' in PDFSharp. After searching I found following line of code, Code: /ViewerPreferences<</Duplex/Simplex/Enforce[/PrintScaling]/PrintScaling/None>> I added that line in my pdf document by opening it in notepad and save. Code: %-------------------------------------------------------------------------------------------------- 2 0 obj % PdfSharp.Pdf.Advanced.PdfCatalog << /Pages 3 0 R /Type /Catalog /ViewerPreferences<</Duplex/Simplex/Enforce[/PrintScaling]/PrintScaling/None>> >> endobj %-------------------------------------------------------------------------------------------------- After adding that line Page scaling option is disabled. and default scaling value is none. thats I want. My question is that, is there any way I can set this option at the time of PDF generation from C#. Thanks
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |