Sign inSign up

adrianolsk/wkhtmltopdf

By adrianolsk

Updated about 9 years ago

Small express server to generate PDF using wkhtmltopdf

Image
1

909

adrianolsk/wkhtmltopdf repository overview

Using docker run

docker run -d --name pdf -p 8080:8080 adrianolsk/wkhtmltopdf

**Using docker-compose ** (docker-compose up -d)

create a docker-compose.yml file with:

version: '2'
services:
  pdf:
    image: adrianolsk/wkhtmltopdf
    restart: always
    container_name: pdf
    ports:
        - '8080:8080'
    environment:
      PORT: '8080'
      AWS_ACCESS_KEY_ID: 'YOUR_KEY'
      AWS_SECRET_ACCESS_KEY: 'YOUR_SECRET'
      BUCKET: 'your_bucket_name'

How to use it

Generate a PDF file in the browser with the url:

Generate a PDF file with the url and download:

Generate a PDF file with the url send it to amazon s3:

Tag summary

Content type

Image

Digest

Size

149.9 MB

Last updated

about 9 years ago

docker pull adrianolsk/wkhtmltopdf