Repository navigation
feat(pdfa): convert existing documents to PDF/A (#229) - #325
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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