All Projects → ciricihq → wkhtmltopdf-flask-aas

ciricihq / wkhtmltopdf-flask-aas

Licence: GPL-3.0 license
Wkhtmltopdf Flask As a Service

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to wkhtmltopdf-flask-aas

api2pdf.php
PHP client library for the Api2Pdf.com REST API - Convert HTML to PDF, URL to PDF, Office Docs to PDF, Merge PDFs, HTML to Image, URL to Image, HTML to Docx, HTML to Xlsx, PDF to HTML, Thumbnail preview of office files
Stars: ✭ 42 (+147.06%)
Mutual labels:  wkhtmltopdf, pdf-generation
magento2-module-pdf
Magento 2 Module for creating PDF's based on wkhtmltopdf
Stars: ✭ 55 (+223.53%)
Mutual labels:  wkhtmltopdf, pdf-generation
Pdfkit
A Ruby gem to transform HTML + CSS into PDFs using the command-line utility wkhtmltopdf
Stars: ✭ 2,799 (+16364.71%)
Mutual labels:  wkhtmltopdf, pdfkit
django-invoices
Create invoices using django
Stars: ✭ 28 (+64.71%)
Mutual labels:  wkhtmltopdf, pdfkit
dhtml2pdf
Simple, free and very easy to use PHP API that allows you to see, download or get the binary of the PDF generated from the HTML of an URL.
Stars: ✭ 27 (+58.82%)
Mutual labels:  wkhtmltopdf, pdf-generation
pdfconduit
Prepare documents for distribution
Stars: ✭ 22 (+29.41%)
Mutual labels:  pdfkit, pdf-generation
imprenta
An AWS lambda in python 3 that generates PDF files from HTML using jinja, pdfkit and wkhtmltopdf.
Stars: ✭ 18 (+5.88%)
Mutual labels:  wkhtmltopdf, pdf-generation
pydf
PDF generation in python using wkhtmltopdf for heroku and docker
Stars: ✭ 68 (+300%)
Mutual labels:  wkhtmltopdf, pdf-generation
cefHtmlSnapshot
Command-line utility for Windows take snapshots of HTML pages and save them as images or PDF
Stars: ✭ 23 (+35.29%)
Mutual labels:  pdf-generation
multirun
A minimalist init process designed for Docker
Stars: ✭ 85 (+400%)
Mutual labels:  docker-container
dockerfiles
A collection of Docker recipes.
Stars: ✭ 31 (+82.35%)
Mutual labels:  docker-container
weasydoc
Convert R Markdown to PDF Using Weasyprint (or Prince XML)
Stars: ✭ 40 (+135.29%)
Mutual labels:  pdf-generation
drupal-dev-docker
An opinionated Drupal development environment based on Docker.
Stars: ✭ 22 (+29.41%)
Mutual labels:  docker-container
nftables-example
A playground ruleset to get to know nftables syntax
Stars: ✭ 19 (+11.76%)
Mutual labels:  docker-container
siteshooter
📷 Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (+270.59%)
Mutual labels:  pdf-generation
laravel-browsershot
Browsershot wrapper for Laravel 5
Stars: ✭ 108 (+535.29%)
Mutual labels:  pdf-generation
javascript
Basic Primitives Diagrams for JavaScript - data visualization components library that implements organizational chart and multi-parent dependency diagrams, contains implementations of JavaScript Controls and PDF rendering plugins.
Stars: ✭ 46 (+170.59%)
Mutual labels:  pdf-generation
django-renderpdf
📄 A Django app to render django templates as PDF files.
Stars: ✭ 37 (+117.65%)
Mutual labels:  pdf-generation
docker-alpine-wkhtmltopdf
wkhtmltopdf alpine docker container with headless qt patches
Stars: ✭ 150 (+782.35%)
Mutual labels:  wkhtmltopdf
docker-lidarr-lad
Official docker for LAD bash enhancement script
Stars: ✭ 22 (+29.41%)
Mutual labels:  docker-container

PDF Generator Flask microservice

Travis Docker Pulls License

This is a microservice which handles pdfkit (which uses wkhtmltopdf) to make PDF generation from HTML a piece of cake.

Docker hub installation

docker run -d --name wkhtmltopdf-aas -p <hostport>:80 ciricihq/wkhtmltopdf-aas

Builds are automatically generated from github.

Manual installation

pip install -r requeriments.txt

Starting server

python app.py

Build Docker container

docker build -t ciricihq/wkhtmltopdf-aas .

Starting Docker container

docker run -d --name wkhtmltopdf-aas -p <hostport>:80 ciricihq/wkhtmltopdf-aas

Testing the microservice

Testing providing url to render:

curl -F "url=http://cirici.com" 'http://localhost:5000/pdf' > youramazingfile.pdf

Testing uploading contents:

curl -F "[email protected]" 'http://localhost:5000/pdf' > youramazingfile.pdf

Testing passing html as string:

curl -F "html=<html><head> <meta charset%3D\"utf8\"> </head><body>Hello world</body></html>" 'http://localhost:5000/pdf' > youramazingfile.pdf

Passing options

You can use all the wkhtmltopdf options passing in a options array as following example (if option should not receive value just send the option without value):

curl -F "url=http://cirici.com" -F "options[orientation]=Landscape" -F "options[grayscale]" 'http://localhost:5000/pdf' > youramazingfile.pdf

You want to generate images? No problem, just change the pdf endpoint to jpg.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].