unstale

npm / @react-pdf/renderer

@react-pdf/renderer

What changed in @react-pdf/renderer 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.

2 breaking4 new APIs and options1 behavior and defaults2 fixes and other

@react-pdf/renderer 49 changes

Breaking changes 2

  • The bundled PDFKit implementation switches from the @react-pdf/pdfkit fork to upstream pdfkit, which may affect PDF generation behavior.

    4.8.0release notes

  • Direct layout callers must provide instance arrays when render props return React elements; renderer users are unaffected.

    4.7.0release notes

New APIs and options 4

  • Adds a conformance prop for PDF/A-1/2/3 output with XMP metadata and sRGB OutputIntent; pdfVersion defaults to the chosen level’s requirement, and registered fonts are needed for full validation.

    4.9.0release notes

  • Adds an opt-in pagination engine that measures content once and packs it into pages, making long documents much faster to paginate.

    4.7.0release notes

  • Adds per-page layout components for headers, footers, and sidebars; the component receives page metadata and content as children.

    4.7.0release notes

  • Exposes hyphenationPenalty on Text props, allowing developers to configure this text behavior.

    4.6.0release notes

Behavior and default changes 1

  • Supports minPresenceAhead in the new engine, keeping a trailing element in place when nothing follows it.

    4.7.0release notes

Fixes and other changes 2

  • Under experimental pagination, in-flow fixed elements repeat at the top of every page they span; footers must be implemented through layout.

    4.7.0release notes

  • Fixed border rendering behavior for generated documents.

    4.4.1release notes