PDF/A Compliance Fixes

Remediation Classes

Aspose.PDF FOSS for Java provides fix classes that correct non-compliant PDF/A structures by removing or modifying prohibited elements.

ActionFixes

ActionFixes removes action dictionaries that are forbidden under PDF/A standards:

ActionFixes fixes = new ActionFixes();
fixes.removeCatalogAA(parser, format, errorAction, result);
fixes.removePageAA(parser, format, errorAction, result);
fixes.removeWidgetAA(parser, format, errorAction, result);
fixes.removeForbiddenActions(parser, format, errorAction, result);

AnnotationFixes

AnnotationFixes corrects annotation structures that violate PDF/A rules, removing or modifying annotations that are not permitted in the target archival format.

FileStructureFixes

FileStructureFixes addresses structural issues at the file level such as embedded files, cross-reference stream format, and encryption settings that conflict with PDF/A requirements.

Validation First

Always run ActionRules.validate() and AnnotationRules.validate() before applying fixes to identify which specific violations are present. Fixes should be applied only to confirmed violations to avoid unintended side effects.

See Also