Convert PDF/A to PDF format

The following code snippet also work with Aspose.PDF.Drawing library.

Convert PDF/A document to PDF

Convert PDF/A document to PDF means removing PDF/A restriction from the original document. Class Document has method RemovePdfaCompliance(..) to remove the PDF compliance information from input/source file.

public static void ConvertPDFAtoPDF()
{
    // For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.PDF-for-.NET
    Document pdfDocument = new Document(_dataDir + "PDFAToPDF.pdf");
    // Remove PDF/A compliance information
    pdfDocument.RemovePdfaCompliance();
    // Save updated document
    pdfDocument.Save(_dataDir + "PDFAToPDF_out.pdf");
}

This info also removes if you make any changes in the document (e.g. add pages). In the following example, the output document loses PDF/A compliance after the page adding.

public static void ConvertPDFAtoPDFAdvanced()
{
    // For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.PDF-for-.NET
    Document pdfDocument = new Document(_dataDir + "PDFAToPDF.pdf");
    // Adding a new (empty) page removes PDF/A compliance information.
    pdfDocument.Pages.Add();
    // Save updated document
    pdfDocument.Save(_dataDir + "PDFAToPDF_out.pdf");
}