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

Free Support Forum - aspose.com

Aspose.PDF removes PDF/A compliance from some PDFs on save

Hi.

Scenario: Open PDF/A file using Aspose.PDF, then save it to a new file.

Issue: Resulting file is no longer PDF/A (open new PDF in Foxit or Adobe reader and see that apps do not show “File is PDF/A compliant” message). The issue happens not with all PDF/A files.

Questions:

  • Why is PDF/A compliance removed?
  • I expect the PDF/A compliance not to be removed for all PDF/A files. Why is the behavior not consistent?
  • Is there a workaround?

Code sample:

using (var d = new Document(path))
{
    d.Save(path + ".resaved.pdf");
}

sample pdfa files.zip (862.4 KB)

For internal reference MDP-13063.

Thanks.

@licenses

We have logged this problem in our issue tracking system as PDFNET-50948. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

We suggest you please use Document.Convert method to save the PDF to PDF/A compliance. For more detail, please read the following article.
Convert PDF to PDF/A formats using C#