Skip to content

Release v2.11.1

Choose a tag to compare

@github-actions github-actions released this 31 Mar 15:12
· 53 commits to main since this release
ab15a0b

@embedpdf/[email protected]

Patch Changes

  • #557 by @jonashaag – Add BMP encoding support as an optional image format

    BMP encoding bypasses canvas.toBlob() entirely by prepending a 66-byte header to the raw RGBA pixel data. This eliminates the dominant rendering bottleneck — in benchmarks, encoding dropped from ~76ms average (PNG via canvas.toBlob) to <1ms, reducing total tile render time by ~60%.

    The BMP uses BI_BITFIELDS with channel masks matching PDFium's RGBA output byte order, so no per-pixel conversion is needed. Top-down row order avoids row flipping. The result is a valid BMP that all modern browsers decode natively in <img> elements.

    Users who want to opt into the faster BMP path can set defaultImageType: 'image/bmp' in the render plugin config, while PNG remains the default output format.

  • #566 by @bobsingor – Fix custom stamp annotations with imageSize so predefined image stamps render correctly while preserving the original embedded bitmap quality.

@embedpdf/[email protected]

Patch Changes

  • #557 by @jonashaag – Add BMP encoding support as an optional image format

    BMP encoding bypasses canvas.toBlob() entirely by prepending a 66-byte header to the raw RGBA pixel data. This eliminates the dominant rendering bottleneck — in benchmarks, encoding dropped from ~76ms average (PNG via canvas.toBlob) to <1ms, reducing total tile render time by ~60%.

    The BMP uses BI_BITFIELDS with channel masks matching PDFium's RGBA output byte order, so no per-pixel conversion is needed. Top-down row order avoids row flipping. The result is a valid BMP that all modern browsers decode natively in <img> elements.

    Users who want to opt into the faster BMP path can set defaultImageType: 'image/bmp' in the render plugin config, while PNG remains the default output format.

@embedpdf/[email protected]

Patch Changes

  • #566 by @bobsingor – Fix Vue and Svelte renderer registration typing so custom preview container styles build correctly.

@embedpdf/[email protected]

Patch Changes

  • #557 by @jonashaag – Add BMP encoding support as an optional image format

    BMP encoding bypasses canvas.toBlob() entirely by prepending a 66-byte header to the raw RGBA pixel data. This eliminates the dominant rendering bottleneck — in benchmarks, encoding dropped from ~76ms average (PNG via canvas.toBlob) to <1ms, reducing total tile render time by ~60%.

    The BMP uses BI_BITFIELDS with channel masks matching PDFium's RGBA output byte order, so no per-pixel conversion is needed. Top-down row order avoids row flipping. The result is a valid BMP that all modern browsers decode natively in <img> elements.

    Users who want to opt into the faster BMP path can set defaultImageType: 'image/bmp' in the render plugin config, while PNG remains the default output format.

@embedpdf/[email protected]

Patch Changes

  • #566 by @bobsingor – Disable the snippet rubber stamp insert command when the active document does not allow annotation modifications.

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]

@embedpdf/[email protected]