feat(pdf): add license-safe source-edit fixture corpus (#32) - #59
Merged
McanKul merged 2 commits intoAug 26, 2026
Merged
Conversation
Synthetic PDFs plus a lopdf writer and manifest for McanKul#11/McanKul#32. Intent is only try-edit or unsupported-stand-in; nothing claims a fixture is editable. Fixes McanKul#32.
McanKul
approved these changes
Aug 26, 2026
McanKul
left a comment
Owner
There was a problem hiding this comment.
Thanks — the corpus is synthetic, compact, clearly scoped, and does not make unsupported editability claims. I independently verified all 18 fixtures with qpdf and ran the 10 corpus tests locally.
7 tasks
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.
Summary
Adds a small, license-safe source-editing fixture corpus for #32 (foundation for #11 / #33).
write_corpus_fixtureinsrc-tauri/src/pdf_engine/source_edit_fixtures.rs(lopdf, thenqpdfnormalize)fixtures/source-edit/(not bundled insrc-tauri/resources/)manifest.json: structure list,intentonlytry-edit|unsupported-stand-in, nevereditableTj/ kernedTJ, CID ± ToUnicode, Type 3, nested Form, rotated/skewedTm, unique/reused/form/inline/mask images, Crop offset, UserUnit, Rotate 90/180/270This does not implement existing-text editing, #33, or change Edit PDF Save. Independent of #54 / #55.
Fixes #32.
Validation
cargo test --manifest-path src-tauri/Cargo.toml --lib(includes 10source_edittests)npm testnpm run typecheckPrivacy Checklist