Values and characters being changed when Print to PDF from Adobe Acrobat is used

We render docs as PDF using Aspose. We have clients who then print subsets of those documents to PDF (Print to PDF) through Adobe. When doing so, formatting is lost and certain pages, on others text is re-ordered or missing. One example is that a checkbox is checked on the original doc, and when Print to PDF through Adobe it becomes unchecked. Other checkboxes that were not checked are become checked.

Adobe will not support because the original PDF was created through a 3rd party (Aspose).
Has anyone else experienced this, and how was it resolved?

@nwynohradnyk

Thanks for contacting support.

We will really appreciate if you can please share a sample PDF document, which is creating issue in your end. We will try to observe the issue in our environment and address it accordingly.

StandAloneCD - Copy.pdf (638.0 KB)

Use Adobe Acrobat and Print to PDF.
Notice behavior like the checkboxes changing values on pages 4 and 5. If you analyze the doc further you’ll see other values change.

@nwynohradnyk

Thanks for sharing the requested document.

We have tested the scenario by printing the document with API (i.e Aspose.Pdf for .NET 17.9) and Adobe Reader Version 11.0.22.0 and were unable to notice the mentioned issues in the printed output PDF. For your reference, we have attached printed PDFs as well as the code snippet which we have used to print the document with API.

Document doc = new Document(dataDir + "StandAloneCD - Copy.pdf");
System.Drawing.Printing.PageSettings pageSettings = new System.Drawing.Printing.PageSettings();
System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();

printerSettings.PrinterName = "Microsoft Print to PDF";
printerSettings.PrintRange = System.Drawing.Printing.PrintRange.AllPages;

System.Windows.Forms.PrintDialog printDialog = new System.Windows.Forms.PrintDialog();
printDialog.PrinterSettings = printerSettings; 

using (var asposeDocPrinter = new Aspose.Pdf.Facades.PdfViewer())
{
 asposeDocPrinter.BindPdf(doc);
 asposeDocPrinter.AutoResize = true;
 asposeDocPrinter.AutoRotate = true;
 asposeDocPrinter.PrintPageDialog = false;
 asposeDocPrinter.PrintDocumentWithSettings(pageSettings, printerSettings);
}

Print_API.pdf (2.2 MB)
Print_AdobeReader.pdf (2.7 MB)

Would you please share some more details about how you are generating the source PDF document. In case you are converting it from another format, please share actual source document with us along with the details of converting it into PDF. This would help us in replicating the issue in our environment and address it accordingly.

With the source PDF open in Adobe Acrobat, choose Print to PDF. This will replicate the issue every time.

@nwynohradnyk

Thanks for writing back.

Please check the attached screenshot Print_To_PDF.png (63.7 KB)
where I have shown the document printing with “Microsoft Print to PDF” at my end and resultant document was fine, as shared earlier. However if you are using different way to print the document through Adobe Reader, please share a screenshot or some more details about it. This would really help us in replicating the scenario in our environment and address it accordingly.

From Adobe Acrobat, select Print, and choose the Adobe PDF option.
You will need Acrobat Pro for this to display as an option.
image.png (22.2 KB)

@nwynohradnyk

I was able to notice the issue while printing the document using Adobe Acrobat DC. However, the source document seems to be generated with Aspose.Pdf for .NET 16.12.0. Would you please try to generate the PDF through latest version i.e Aspose.Pdf for .NET 17.9 and check if issue still persists. In case you still face same issue, please share the document with us, we will investigate the issue and respond you accordingly.

We are working on incorporating the new version. We did notice that if we embed the fonts doc.Save(
tempFilename,
new Aspose.Words.Saving.PdfSaveOptions
{
UseCoreFonts = true
});
The issue will resolve.
The problem with this setting is that the size of the file increases dramatically.
How do you suggest we embed the fonts without increasing the file size?

@nwynohradnyk

Thanks for your inquiry.

It is a fact that file size would be increase, in case you embed font while generating it. However, with Aspose.Pdf for .NET, you may improve Fonts Embedding using FontSubsetStrategy while generating a PDF document, but by looking at the code snippet which you have shared, it seems that you are using Aspose.Words to generate PDF document. We have created a new topic in relevant category with title “Size of the file increases dramatically”, where relevant team will assist you shortly.

In case you face any issue while using Aspose.Pdf API, please feel free to let us know.