When converting a document to PDF/A, the following changes are made to a document by default:
- Graphics will be converted to a device-independent format. If any device dependent color spaces are used, the corresponding color profile will be embedded.
- Non-embedded fonts will be embedded.
- Transparency will be removed.
- Unsupported annotations (e.g., video, audio, 3D) will be removed.
- JavaScript – mostly used in Forms – will be removed.
- Form fields will be flattened, except for signature fields.
- Embedded files and external hyperlinks will be removed.
jPDFPreflight library offers the PDFConversionOptions class to control some of the conversion options:
// Set conversion options PDFAConversionOptions options = (PDFAConversionOptions) profile.getConversionOptions(); options.setTransparency(PDFAConversionOptions.OPTION_WARN); options.setUnsupportedAnnotations(PDFAConversionOptions.OPTION_DELETE); options.setSignatureFields(PDFAConversionOptions.OPTION_FLATTEN); options.setEmbeddedFiles(PDFAConversionOptions.OPTION_DELETE); |