Skip to content

LinusKall/html_to_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  1. Clone this repository,
  2. open a terminal inside html_to_pdf/ and run npm install,
  3. place your index.html file and others in a folder NAMEME/,
  4. place NAMEME/ in one of the folders inside data/,
  5. reuse terminal inside html_to_pdf/ and run node index.js, and
  6. check out your PDFs inside pdfs/!

Tips

  1. If your PDFs does not look correct, use <style>...</style> tags inside your index.html file instead of external .css files for styling.
  2. Add html { -webkit-print-color-adjust: exact; } inside your <style>...</style> tags for better colors!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •