Convert PDF/A to PDF format

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.

// Create a new instance of the Document class with the input file
$document = new Document($inputFile);

// Remove the PDF/A compliance from the document
$document->removePdfaCompliance();

// Save the modified document to the output file
$document->save($outputFile);

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.

// Create a new instance of the Document class with the input file
$document = new Document($inputFile);

// Remove the PDF/A compliance from the document
$document->getPages()->add();

// Save the modified document to the output file
$document->save($outputFile);