Hi!
We are using PrintDocumentWithSettings(PageSettings pageSettings, PrinterSettings printerSettings) in PDFViewer to print pdf documents. When we are trying to print a document(both using a printer and print as pdf) that were created in landscape and set the pagesettings to portrait mode the text will overflow the page. Is there a solution for this?
Found a post from 2014 " Aspose PDF not printing correctly" which resulted in a ticket PDFNEWNET-37098 but then there is no more information about this.
/Marcus
@admin.aspose.solarpl
Regretfully, the referenced ticket has not been yet resolved. However, we have recorded your concerns along with the ticket and raised its priority level. Could you kindly share your sample PDF along with the sample code snippet for our reference? We will test the scenario in our environment and address it accordingly.
Thank you for the quick response!
Here is the sample code:
PageSettings printerPageSettings = new PageSettings
{
Landscape = false
};
using (PdfViewer viewer = new PdfViewer())
{
viewer.BindPdf(path);
viewer.PrintDocumentWithSettings(printerPageSettings, printerSettings);
viewer.Close();
}
Attaching the pdf that has the incorrect output.
a.pdf (23.6 KB)
So the document is created in landscape and then printed in portrait mode which generates this result.
We really need a fix for this, is there a chance that you have a workaround for this problem until the ticket is solved?
/Marcus
@admin.aspose.solarpl
It looks like you have shared the output PDF file that has been generated at your end. Would you please share the respective source PDF document so that we can test the scenario and address it accordingly.
Here is the original PDF document: OriginalFile.pdf (13.5 KB)
/Marcus
@admin.aspose.solarpl
We were able to notice the issue in our environment and have logged it as PDFNET-49690 in our issue tracking system for your file. We will look into details of this case and let you know as soon as the ticket is resolved. Please be patient and spare us some time.
We are sorry for the inconvenience.
The issues you have found earlier (filed as PDFNET-49690,PDFNET-37098) have been fixed in Aspose.PDF for .NET 25.11.