Wrong size and layout of loaded and printed PDF

Hi,

we are using the ASPOSE Pdf .NET library to open a PDF file an print it to a printer. Now we recognized that the result of the printed document doesn’t match the size and layout of the original PDF file.

We attached 4 documents, two of these are the original documents and 2 of these are the results printed with ASPOSE Pdf (printed out to FreePdf, a free pdf printer. Same result on our Brother MFC-8880DN printer).

These are the lines of code we are using for loading and printing the PDF:

// create a Pdf license object
Aspose.Pdf.License license = new Aspose.Pdf.License();
// instantiate license file
license.SetLicense(“Aspose.Pdf.lic”);
// set the value to indicate that license will be embedded in the application
license.Embedded = true;

Aspose.Pdf.Facades.PdfViewer tmpPdfViewer = new Aspose.Pdf.Facades.PdfViewer();

tmpPdfViewer.OpenPdfFile(@“C:\218_960700913167.pdf”);

PrinterSettings tmpPrinterSettings = new PrinterSettings();
tmpPrinterSettings.PrinterName = PrinterSettings.InstalledPrinters[4];

tmpPdfViewer.PrintDocumentWithSettings(tmpPrinterSettings);



As you can see in the result PDFs, the orientation of the last two pages is wrong, the images are looking sometimes wired and ASPOS PDF insert black boxes at some positions.

Is there a way to print like the original PDF?

Greetings

H. Bischof

Hello Hannes,


Thanks for using our products.

I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-33466. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We
apologize for your inconvenience.