Skip to content

Releases: hajareshyam/pdf-creator-node

v4.0.2

03 Apr 18:52

Choose a tag to compare

v4.0.1 — Docs, example, and source layout

03 Apr 18:52

Choose a tag to compare

Changed

  • Source layout: src/pdf/, src/handlebars/, src/types/, src/validation/, src/create/; public API unchanged.
  • Example: async/await, stable output.pdf path via path.join(__dirname, ...), fixed template {{this.age}}, npm start.

Documentation

  • README: AWS Lambda / serverless, custom fonts, images, margins, page-break hints.
  • GitHub Pages: Fonts & images section, v4 footer guide, author / social links.

See CHANGELOG.md.

v4.0.0 — Puppeteer (Chromium)

03 Apr 18:52

Choose a tag to compare

Breaking changes

  • Rendering: PhantomJS / html-pdf replaced with Puppeteer (headless Chromium). Larger install; PDF output may differ slightly from Phantom.
  • Types: PdfCreateOptions extends PdfRenderOptions (no @types/html-pdf). phantomPath, phantomArgs, etc. are deprecated no-ops.
  • Footer contents: Only one template is used — default, else first, else last. Per-page numeric keys are not applied.

Added

  • Puppeteer-based PDF rendering, htmlPdfTokensToPuppeteer() for {{page}} / {{pages}} in headers/footers.

Removed

  • Dependencies html-pdf, @types/html-pdf.

Install: npm i pdf-creator-node@4

Full history: CHANGELOG.md.