PDF/A-2 allows only PDF/A files as embedded attachments, while PDF/A-3 allows any file type, such as XML, CSV, or HTML. A PDF/A-2 file carrying a spreadsheet attachment fails validation, so the embedded files must be checked against the conformance level.
What you need
- veraPDF installed
- A PDF/A file to validate
- A terminal
- A way to list embedded files, such as qpdf or a PDF editor
Step 1: Validate the file with veraPDF
Run veraPDF validation on the file and read the report to find the declared PDF/A conformance level and any failures.
Step 2: List the embedded files and their types
List every file embedded in the PDF and note each file’s type. A spreadsheet, XML file, or other non-PDF attachment is the kind of file PDF/A-2 forbids.
Step 3: Decide whether to remove the files or move to PDF/A-3
If the file must stay PDF/A-2, remove the non-PDF attachments and re-validate. If the attachments must stay, convert the file to PDF/A-3 and re-validate.
Worked example: synthetic PDF/A attachment check on an archived report
The table below is a synthetic example. It shows the expected result of the validation; no validation was run.
| Attachment | Type | Allowed in PDF/A-2 |
|---|---|---|
| appendix.pdf | PDF/A | Yes |
| data.csv | CSV | No, needs PDF/A-3 |
| notes.xml | XML | No, needs PDF/A-3 |
| Verdict | PDF/A-2 | Fails, 2 forbidden files |
Expected result (UNTESTED). the file declares PDF/A-2, but it embeds a CSV and an XML file that only PDF/A-3 allows, so it fails validation until the files are removed or the file moves to PDF/A-3. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- veraPDF reports the declared conformance level; a file that claims PDF/A-2 but was never validated may fail on other rules too.
- Removing an attachment changes the archived record, so record the removal.
- PDF/A also requires every font to be embedded and XMP metadata to be present, which this check does not cover.
