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

Free Support Forum - aspose.com

PdfViewer cutting off QR Code in Margins

I’m running into an issue where our code is creating the PdfViewer object to talk to a local printer in order to print out a PDF with a QR Code in the bottom left corner of the page, however this is being cut off at print time. When I download the PDF (created from a docx, then converted to PDF using aspose.pdf), and print the pdf without using the pdf viewer, the QR Code is displayed just fine.


Any idea as to why the PdfViewer object would create larger margins, therefore cutting off my QR Code? Is there a better way to print out the pdf other than PdfViewer?

Good news, I figured this out. I had to set the AutoResize = true and now my pdf prints out in its entirety.

Hi Tom,


Thanks for your feedback and it is good to know that you have managed to resolve the issue. In addition to using AutoResize property you may also set Margins properties of PageSetting object.

Please feel free to contact us for any further assistance.

Best Regards,