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