Skip to content

v0.2.0

Choose a tag to compare

@rucciva rucciva released this 03 Oct 14:12
· 3 commits to main since this release

Per-input page geometry support.

Every input (HTML, PNG, JPEG, PDF) now accepts an optional geometry:

  • page: a4 | letter | legal
  • orientation: portrait (default) | landscape
  • fit: contain (default) | cover — image/PDF only

HTML geometry is translated to an appended CSS @page { size: ... } rule that overrides a base @page size while preserving margins and pseudo-page rules. Images and PDFs are laid out on the target page; PDF pages are re-laid via vector Form XObject embedding (no rasterization). Absent geometry preserves previous behavior exactly.

Published to npm as @caseflux-id/pdf-bundle@0.2.0.