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

Free Support Forum - aspose.com

Convert from PDF/A-1b to PDF/A-2u

With reference to https://docs.aspose.com/display/pdfnet/Convert+PDF+file+to+other+Formats#ConvertPDFfiletootherFormats-ConvertPDF-AfiletoPDF, may I check if Aspose.Pdf allows conversion from PDF/A-1b to PDF/A-2u directly?

Hi Hock Chiang,


Thanks for your inquiry. Please use following code snippet to convert PDF_A_1B to PDF_A_2U directly.

string inFile = dataDir + “PDFA_1B.pdf”;<o:p></o:p>

string outFile = dataDir + "PDFA_2U.pdf";

Document doc = new Document(inFile);

doc.Convert(new MemoryStream(), PdfFormat.PDF_A_2U, ConvertErrorAction.Delete);

doc.Save(outFile);



In case you have any other query, please feel free to contact us.


Best Regards,
asad.ali:
Hi Hock Chiang,

Thanks for your inquiry. Please use following code snippet to convert PDF_A_1B to PDF_A_2U directly.

string inFile = dataDir + "PDFA_1B.pdf";

string outFile = dataDir + "PDFA_2U.pdf";

Document doc = new Document(inFile);

doc.Convert(new MemoryStream(), PdfFormat.PDF_A_2U, ConvertErrorAction.Delete);

doc.Save(outFile);



In case you have any other query, please feel free to contact us.


Best Regards,

Noted, thanks for your prompt response!

Hi Hock Chiang,


Thanks for the acknowledgement.

Please continue using our API and in case you encounter any issue, please share the input file, so that we can test the conversion in our environment.