Skip to content

arizorin/single-page-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create single file PDF from HTML

This is a ready to use JS script for converting HTML pages to a single PDF file (as like on Safari). There are also several flags to help you get your pdf converted correctly:

  • "multi" - split pdf to multiple pages
  • "transparent" - remove background color
  • "offset" - adds height to result pdf page

P.S You can also run node index.js parse help to get more info about available commands.

Installation

Script requires Node.js v16+ to run. Create input and output folders. Install the dependencies and devDependencies and start the script.

mkdir input output
npm i
node index.js parse FILE_NAME.PDF

About

Convert HTML to a single page pdf

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors