Skip to content

Collapse split page content into single stream#640

Merged
bobsingor merged 1 commit into
mainfrom
fix/redaction-layout-shift
May 19, 2026
Merged

Collapse split page content into single stream#640
bobsingor merged 1 commit into
mainfrom
fix/redaction-layout-shift

Conversation

@bobsingor
Copy link
Copy Markdown
Contributor

Fix layout shifts when a page's /Contents is a split-stream array (e.g. after redaction). Previously only dirty streams were rewritten, preserving original split boundaries and breaking graphics-state handoff between streams; this could shift visible layout. CPDF_PageContentGenerator::GenerateContent now collapses all active page objects into a single canonical content stream via GenerateCanonicalPageStream and CPDF_PageContentManager::ReplaceWithSingleStream. Form XObjects keep their existing single-stream behavior. Also adds the changeset note and updates the pdfium-src submodule and bundled pdfium.wasm.

Fix layout shifts when a page's /Contents is a split-stream array (e.g. after redaction). Previously only dirty streams were rewritten, preserving original split boundaries and breaking graphics-state handoff between streams; this could shift visible layout. CPDF_PageContentGenerator::GenerateContent now collapses all active page objects into a single canonical content stream via GenerateCanonicalPageStream and CPDF_PageContentManager::ReplaceWithSingleStream. Form XObjects keep their existing single-stream behavior. Also adds the changeset note and updates the pdfium-src submodule and bundled pdfium.wasm.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
embed-pdf-snippet Building Building Preview, Comment May 19, 2026 7:27pm
embed-pdf-viewer-react-mui Building Building Preview, Comment May 19, 2026 7:27pm
embed-pdf-viewer-svelte-tailwind Building Building Preview, Comment May 19, 2026 7:27pm
embed-pdf-viewer-vue-vuetify Building Building Preview, Comment May 19, 2026 7:27pm
embed-pdf-website Building Building Preview, Comment May 19, 2026 7:27pm

Request Review

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