Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdfshot

build DockerHub

PDF screenshot generator for web pages

Run pdfshot

$ docker pull xcoo/pdfshot:0.1.8
$ docker run --rm \
             --cap-add=SYS_ADMIN \
             -e "PDFSHOT_PORT=8000" \
             -e "PDFSHOT_TIMEOUT=60000" \
             -p 8000:8000 \
             xcoo/pdfshot:0.1.8

Usage

$ curl -fsLJO 'localhost:8000/print.pdf?target=https%3A%2F%2Fxcoo.jp&wait_for=%23container'
  • target (Required)
    • The URL for which you want to get the screenshot.
    • https://xcoo.jp
  • wait_for (Optional)
    • Wait for the screenshot until the selector you specified appears on the page.
    • #container

Build Requirements

  • Leiningen

Build Docker image

$ docker build -t xcoo/pdfshot:latest .
$ docker-compose up -d

Local execution

$ lein cljsbuild once
$ node target/pdfshot.js

License

Copyright Xcoo, Inc.

Licensed under the Apache License, Version 2.0.

About

PDF screenshot generator for web pages

Topics

Resources

Stars

28 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages