The conversion option analyzes the content of existing PDF files and performs a sequence of modifications in order to produce a PDF/A compliant document.
Features that are not suitable for long-term archiving (such as encryption, obsolete compression schemes, missing fonts, or device-dependent color) are replaced with their PDF/A compliant equivalents. Because the conversion process applies only necessary changes to the source file, the information loss is minimal.
Converts existing PDF files to PDF/A compliant documents, including PDF/A-1a and PDF/A-1b only.
NSURL *url = [NSURL fileURLWithPath:pdfPath]; CPDFDocument *document = [[[CPDFDocument alloc] initWithURL:url] autorelease]; [document writePDFAToURL:url withType:CPDFTypePDFA1a];