Skip to content

Embedpdf/feature/print copy - #77

Merged
bobsingor merged 3 commits into
embedpdf/mainfrom
embedpdf/feature/print-copy
Oct 17, 2026
Merged

bobsingor merged 3 commits into
embedpdf/mainfrom
embedpdf/feature/print-copy

Conversation

@bobsingor

Copy link
Copy Markdown
Contributor

No description provided.

Add EPDFDoc_ExportPagesFlattened to copy pages in a requested order as they draw for screen or print, optionally flattening annotations and form fields. Copy in-memory annotation appearances and their resources without modifying the source, while preserving optional-content visibility and omitting interactive page data.
The renderer never shows a no-view annotation on screen (it may still
print), so flattening for display leaves it in place, and a display
copy doesn't paint it.
ISO 32000-2 12.5.3 limits the Invisible flag to annotations of a
non-standard type that no handler draws; on a standard annotation it
means nothing. The renderer drew such unknown annotations anyway, and
flatten left out every annotation with the flag, so a flattened copy
lost standard annotations the viewer showed. Both now ask
CPDF_Annot::IsHiddenByInvisibleFlag().
@bobsingor
bobsingor merged commit a588842 into embedpdf/main Oct 17, 2026
1 check passed
@bobsingor
bobsingor deleted the embedpdf/feature/print-copy branch October 17, 2026 14:20
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