Skip to content

telemac/pdf-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdf-generator

pdf-generator Generates pdf from html templates and json files

The project is separated in two parts :

  • the html to pdf conversion
  • the html generation

Installation

git clone https://github.com/telemac/pdf-generator.git
cd pdf-generator
npm install

HTML to PDF conversion

The html to pdf conversion uses puppeteer

You can test a conversion with the following command, the result will be in tiger.pdf :

node html2pdf/index.js "https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg" "tiger.pdf"
  • Make a simple command line tool that converts an url to a pdf file
  • Allow some parameters
  • Make a docker container
  • Add an http interface

HTML generation

Coming soom...

#npm install -g @vue/cli @vue/cli-service-global @vue/cli-init
#vue init nuxt-community/starter-template stagiaires

About

Generate pdf from html templates and json files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published