Releases: hajareshyam/pdf-creator-node
Releases · hajareshyam/pdf-creator-node
v4.0.2
Full Changelog: v4.0.0...v4.0.2
v4.0.1 — Docs, example, and source layout
Changed
- Source layout:
src/pdf/,src/handlebars/,src/types/,src/validation/,src/create/; public API unchanged. - Example: async/await, stable
output.pdfpath viapath.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)
Breaking changes
- Rendering: PhantomJS /
html-pdfreplaced with Puppeteer (headless Chromium). Larger install; PDF output may differ slightly from Phantom. - Types:
PdfCreateOptionsextendsPdfRenderOptions(no@types/html-pdf).phantomPath,phantomArgs, etc. are deprecated no-ops. - Footer
contents: Only one template is used —default, elsefirst, elselast. 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.