We are generating PDF files in our application and expect user open the pdf file in any PDF reader (like adobe) and print it. As the file will have bar codes which are going to scanned we want to set the default Page Sizing & Handling print option as “Actual size” (please refer Attached screenshot).
Hi Krishna,
Thank you for your response, I tried that option and it din’t fix the problem. You can use any pdf file as input parameter
Hi Krishna,
Thanks for contacting support.
The option to print the PDF file using Actual Size is related to PDF viewing application and I am afraid its not related to PDF specifications. The PDF files generated with Aspose.Pdf are built on top of Adobe PDF Specifications and it cannot control the options/features being offered by PDF viewing applications. However, you can specify the page size when Printing the PDF file and as you have stated above, you can set PdfViewer.AutoResize to false, in order to force PDF printing with page dimensions specified using PaperSize property of PageSettings class. Please visit the following link for further details on Printing PDF File to Default Printer using Printer and Page Settings (Facades)
In the event of any further query, please feel free to contact.