We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PrintScaling option in ViewerPreferences

Is there a PrintScaling option in ViewerPreference in Aspose? We want to set the PrintScaling to none by default so when our PDF files are printed the ‘fit to page’ option is unchecked. (We need our document to print actual size, and we don’t want the user to have to remember to set the print scaling to none every time).


Some other PDF libraries I have used in the past have this option, and they work great.

ceTe DynamicPdf looks something
like this:
Document.ViewerPreferences.NoPrintScaling
= true;

<o:p></o:p>

itextsharp looks like this:
Document.AddViewerPreference(iTextSharp.text.pdf.PdfName.PRINTSCALING, iTextSharp.text.pdf.PdfName.NONE);

Is there an option to do this in Aspose? If not can it be added in a future version?

Hi Brent,


Thanks for your inquiry. I am afraid currently Aspose.Pdf does not PrintScaling option in ViewerPreferences. However we have logged an enhancement ticket PDFNEWNET-37378 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,

Hi Brent,

In addition to above reply, please note you can control print scaling while printing through Aspose.Pdf using PrintViewer class. You can set AutoResize and AutoRotate properties to false to keep original scaling of PDF document during printing. It will help you for print scaling if you are using Aspose.Pdf for printing.

However, we will keep you updated about the original logged issue’s progress via this forum thread.

//create PdfViewer object<o:p></o:p>

PdfViewer viewer = new PdfViewer();

//open input PDF file

viewer.BindPdf("input.pdf");

viewer.AutoResize = false;

viewer.AutoRotate = false;

// viewer.ScaleFactor = 0.5f; // decrease print size to 50%

viewer.PrintPageDialog = false;

Best Regards,

Is this feature available in the current version?

Hi Bruno,


Thanks for your inquriy. Yes, you can use above PdfViewer class properties to control the print scaling, while printing through Aspose.Pdf API.

Please feel free to contact us for any further assistance.

Best Regards,

Thank you for your reply but I actually meant the feature requested by the OP. (PrintScaling in ViewerPreference)

Hi Bruno,


Thanks for your feedback. I am afraid the logged feature is still pending for analysis as product team is busy in other issues/features in the queue. However we have recorded your interest in the feature and will notify you as soon as we made some significant progress towards issue resolution.

We are sorry for the inconvenience caused.

Best Regards,