---
Product: Aspose.PDF
Platform: java
Page Type: docs
Canonical URL: https://docs.aspose.org/pdf/java/developer-guide/fixes
---

# PDF/A Compliance Fixes

Apply PDF/A compliance remediation using ActionFixes, AnnotationFixes, and FileStructureFixes in Aspose.PDF FOSS for Java.

## 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:

```java
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

- [Aspose.PDF for Java — Enterprise Documentation](https://docs.aspose.com/pdf/java/)