Dockerized PDF Generator with compression and pages merge features.
6.8K
Dockerized PDF Generator with compression and pages merge features.
Dockerfile links$ docker run -p 80:8080 -v /var/www/pdf:/storage --name pdfy -d caffeina/pdfy:1
Example docker-compose.yml for pdfy generation and sync on AWS S3:
version: '3'
services:
pdfy:
image: caffeina/pdfy:1
restart: always
volumes:
- pdf-data:/storage
awssync:
image: caffeina/awssync:1
restart: always
volumes:
- pdf-data:/storage
environment:
AWS_BUCKET_SYNC_DIR: "pdf"
AWS_BUCKET: "mybucket"
AWS_ACCESS_KEY_ID: "myawskey"
AWS_SECRET_ACCESS_KEY: "************************"
volumes:
pdf-data:
Then start the containers.
$ docker-compose up
WARNING: By design pdfy isn't meant to be exposed on the internet.
$ curl http://localhost/
$ curl -X POST -d "urls=https://google.it&urls=https://google.com&name=google&orientation=portrait&paper=10cmX15.5cm&fit=Letter" http://localhost/
portrait)A4)false)$ curl -X DELETE http://localhost/
$ curl -X DELETE http://localhost/{pdf-name}
$ curl http://localhost/{pdf-name}
How to get involved:
This project follows the GitFlow branching model. The master branch always reflects a production-ready state while the latest development is taking place in the develop branch.
Each time you want to work on a fix or a new feature, create a new branch based on the develop branch: git checkout -b BRANCH_NAME develop. Only pull requests to the develop branch will be merged.
Pull requests are highly appreciated.
Solve a problem. Features are great, but even better is cleaning-up and fixing issues in the code that you discover.
This project is maintained by using the Semantic Versioning Specification (SemVer).
Copyright 2018 Caffeina srl under the MIT license.
Content type
Image
Digest
Size
247 MB
Last updated
about 8 years ago
docker pull caffeina/pdfy