We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Embed ''Fit to Printable Area'' setting in document

Is there any way to create a document that has the page scaling specified? Specifically, I want the output document to be set to 'Fit to Printable Area', so that when I do a print on the file (from windows explorer context menu), it scales that way instead of the user's default.

1 Reply

PJ Pravin Joshua D Syncfusion Team April 6, 2010 09:34 AM UTC

Hi Justin,

Thank you for using Essential PDF.

It is possible to set the page scaling to either none or default using the following code snippet.

[C#]
doc.ViewerPreferences.PageScaling = PageScalingMode.None;


In the PDF reference, the allowable flags are only 'None' and 'AppDefault'. Hence, it is not possible to set the other page scaling like 'Fit To Printable Area'.

Please let us know if you have any questions.

Regards,
Pravin.

Loader.
Live Chat Icon For mobile
Up arrow icon