Skip to content

fix(render): checkbox rendering crashes with upstream pdfkit (initDeflate) - #3518

Merged
diegomura merged 1 commit into
masterfrom
diegomura/fix-forms-initdeflate-error
Aug 23, 2026
Merged

fix(render): checkbox rendering crashes with upstream pdfkit (initDeflate)#3518
diegomura merged 1 commit into
masterfrom
diegomura/fix-forms-initdeflate-error

Conversation

@diegomura

Copy link
Copy Markdown
Owner

Summary

Rendering a Checkbox (e.g. the forms example) crashes with appearance.initDeflate is not a function since the swap to upstream pdfkit (#3509). initDeflate was a streaming-deflate API that only existed in the @react-pdf/pdfkit fork — upstream's PDFReference compresses stream content automatically in finalize(), so the call is simply removed along with its test mock. Verified end-to-end: the forms document renders without error and checked-checkbox appearance streams draw correctly; all render package tests pass. Includes a patch changeset for @react-pdf/render.

🤖 Generated with Claude Code

…treams

Upstream pdfkit's PDFReference compresses automatically in finalize();
initDeflate only existed in the @react-pdf/pdfkit fork.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4d9ed14

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@react-pdf/render Patch
@react-pdf/renderer Patch
@react-pdf/math Patch
@react-pdf/mermaid Patch
next-14 Patch
next-15 Patch
@react-pdf/vite-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@diegomura
diegomura merged commit cc9746c into master Aug 23, 2026
14 checks passed
@diegomura
diegomura deleted the diegomura/fix-forms-initdeflate-error branch August 23, 2026 22:28
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