docs(examples): add the twin-output dual-format hook example and README section#422
Merged
Conversation
…the README's PPTX claims
DemchaAV
force-pushed
the
docs/twin-output-hook
branch
from
July 19, 2026 20:08
5a61dea to
ccc7e4b
Compare
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.
Stacked on #421 (the beta designation the README section references); retarget to
developbefore merging that parent.Why
The dual-output story — one Java composition emitting a print-ready PDF and an editable PowerPoint deck with identical geometry — is the library's strongest hook, but nothing in the README demonstrated it. The Engine Deck row mentions
buildPptx()in passing; there was no artifact a visitor could open, no visual proof the formats match, and no evidence the slides are actually editable.What
TwinOutputExample(366 lines): a single 16:9 hook page in the release-banner visual language, written once and emitted twice from the sameDocumentSession—buildPdf()plusbuildPptx(Path). The page states the hook itself: headline, the exact API call in a code panel, a layout-graph → two-backends diagram, and proof chips. Registered inGenerateAllExamplesandShowcaseMetadata.assets/readme/: the three PNGs plus the openabletwin-output.pdf/twin-output.pptxpair; a Twin Output row in the examples gallery; a CHANGELOGDocumentationentry.Verification
TwinOutputLayoutSnapshotTestpins the page geometry against a committed baseline (one baseline guards both artifacts, since both backends consume the same resolved layout);TwinOutputNativeShapeTestopens the generated .pptx with POI and asserts the slide stays native — exactly one picture (the clipped logo) and 60+ native shapes — so a clip-safety regression cannot silently falsify the README's editability claim.Path deckdeclared, every call a real public-API method).<p:sp>native shapes, 1<p:pic>(the clipped logo), 0 groups.