Skip to content

feat(pdfa): convert existing documents to PDF/A (#229) - #325

Merged
michaelstonis merged 2 commits into
spec/33-broadside-v1from
229-convert-to-pdfa
Oct 16, 2026
Merged

michaelstonis merged 2 commits into
spec/33-broadside-v1from
229-convert-to-pdfa

Conversation

@michaelstonis

Copy link
Copy Markdown
Owner

Closes #229.

PdfDocument.ConvertToPdfA(level) fixes what PDF/A forbids and embeds non-embedded simple fonts (subset Type 0 over the original codes, with ToUnicode), reporting what it cannot fix (PdfAConversion.Violations/NotConverted). The PDF/A check gains the rules veraPDF finds broken in real files; a PDF/A save serializes every object.

Real-world (pdfbox + pdf20examples, Standard 14 fonts only): 2b 123/136, 2u 119, 3b 127, 4 123 conform, all passing veraPDF (CI verapdf job now fetches those corpora).

🤖 Generated with Claude Code

michaelstonis and others added 2 commits October 15, 2026 22:36
PdfDocument.ConvertToPdfA fixes what a level forbids (encryption,
JavaScript and other actions, multimedia annotations, flags and
appearances, transfer functions, OPI, LZW, XMP, optional content,
embedded files as associated files) and embeds non-embedded simple
fonts as subset Type 0 fonts over the original codes with ToUnicode,
reporting what it cannot fix. The PDF/A check gains the rules veraPDF
finds broken in real files, and a PDF/A save serializes every object.

Real-world pdfbox + pdf20examples: 123/136 conform to PDF/A-2b
(2u 119, 3b 127, 4 123), every one passing veraPDF in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaelstonis
michaelstonis merged commit bb33cd4 into spec/33-broadside-v1 Oct 16, 2026
19 checks passed
@michaelstonis
michaelstonis deleted the 229-convert-to-pdfa branch October 16, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant