Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Web server to generate PDF's from HTML using wkhtmltopdf

Notifications You must be signed in to change notification settings

ginmon/node-pdf-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pdf-generator

A Node web server to generate PDF's from HTML that uses the wkhtmltopdf command line tool.

Installation

Prerequisites

Install the wkhtmltopdf command line tool on your system (download).

Add wkhtmltopdf to your PATH, the server will not be able to use wkhtmltopdf without this.

Setup

Install npm, and then do this:

npm install node-pdf-generator

Usage

Basic usage with default configuration:

node index.js

The server can be configured using any method supported by nconf, for example from a bash shell:

port=1338 bindIp=0.0.0.0 node index.js

Docker

wkhtmltopdf docker

docker run -it -v $(pwd)/pdf:/pdf twang2218/wkhtmltopdf https//www.google.com /pdf/google.com.pdf

Alternatives

Ready made HTTP service with Dockerfile

See blog post

Athena PDF

athenapdf repo with more info

docker pull arachnysdocker/athenapdf-service docker run -p 8080:8080 --rm arachnysdocker/athenapdf-service

The default authentication key is arachnys-weaver. This can be changed through the WEAVER_AUTH_KEY environment variable.

The microservice can be deployed scalably to ECS if you want to build your own conversion farm.

See video instructions

About

Web server to generate PDF's from HTML using wkhtmltopdf

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%