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

Free Support Forum - aspose.com

Convert PDF to PDF/A using C# | Aspose.PDF for .NET | conversion issue

I am using Aspose.Pdf to validate and convert PDF files to conform to the PDF/A standard. In the process, it was noted that when saving a PDF file that was initially marked as PDF/A compliant (Sample_input.pdf) the processed file loses the “PDF/A Compatible” mark (Sample_output.pdf).

Sample_input.pdf (4.4 MB)
Sample_output.pdf (4.3 MB)
Sample_output.pdfvalidation-result-A1A.zip (767 Bytes)

Code used (C#):

using (var doc = new Document(input))
                doc.Validate(output + "validation-result-A1A.xml", PdfFormat.PDF_A_1A);
                var options = new PdfFormatConversionOptions(PdfFormat.PDF_A_1A, ConvertErrorAction.None)
                    OptimizeFileSize = true,
                    ExcludeFontsStrategy = RemoveFontsStrategy.SubsetFonts | RemoveFontsStrategy.RemoveDuplicatedFonts


What is the reason that the file loses PDF/A compatibility and how can this be avoided?


We tested the scenario in our environment while using Aspose.PDF for .NET 21.4 and were able to notice the similar issue. We also tried to remove PDFA Compliance before converting the document but it did not give much success.

Therefore, we have logged an issue as PDFNET-49797 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.