Sign inSign up

brettdocker/pdf-manager

By brettdocker

•Updated almost 6 years ago

Save PDFs by providing a URL to save & read them later!

Image
0

201

brettdocker/pdf-manager repository overview

⁠Create & Read PDFs

This app contains three routes:

  1. "/" - returns a single webpage that creates links for each of the documents created.

  2. "/create" - takes two arguments "pdf" and "title," they should be supplied like this

http://localhost:8000/create/?pdf=https://google.com&title=Google Home Page The URL has to encoded, however modern browsers will do this automatically when you press enter.

  1. "/read" - takes a single argument "title," you may have guessed but it should look like this

http://localhost:8000/read?title=Static Files.pdf - Same storage on the encoding...

If everything went correctly you should see a PDF print out of the webpage previously provided to the create route.

⁠Special Thanks

leo-ossais⁠ - Makes it dead simple to get WKHTMLTOPDF working.

⁠Run With Docker

docker run -d --name=pdf-manager -p 8000:8000 -v /some/dir:/app/public brettdocker/pdf-manager

Note that the "app/public" directory is where the PDF's are stored, map it to persistent storage if they matter to you.

Tag summary

Content type

Image

Digest

Size

156.6 MB

Last updated

almost 6 years ago

docker pull brettdocker/pdf-manager