All Projects → alfredo → imprenta

alfredo / imprenta

Licence: other
An AWS lambda in python 3 that generates PDF files from HTML using jinja, pdfkit and wkhtmltopdf.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to imprenta

magento2-module-pdf
Magento 2 Module for creating PDF's based on wkhtmltopdf
Stars: ✭ 55 (+205.56%)
Mutual labels:  wkhtmltopdf, pdf-generation
pydf
PDF generation in python using wkhtmltopdf for heroku and docker
Stars: ✭ 68 (+277.78%)
Mutual labels:  wkhtmltopdf, pdf-generation
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 (+133.33%)
Mutual labels:  wkhtmltopdf, pdf-generation
wkhtmltopdf-flask-aas
Wkhtmltopdf Flask As a Service
Stars: ✭ 17 (-5.56%)
Mutual labels:  wkhtmltopdf, pdf-generation
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 (+50%)
Mutual labels:  wkhtmltopdf, pdf-generation
clj-pdf-markdown
Library for rendering markdown to clj-pdf data-structure syntax.
Stars: ✭ 20 (+11.11%)
Mutual labels:  pdf-generation
go-localstack
Go Wrapper for using localstack
Stars: ✭ 56 (+211.11%)
Mutual labels:  lambda
zappa-ffmpeg
Run ffmpeg inside a lambda for serverless transformations.
Stars: ✭ 14 (-22.22%)
Mutual labels:  lambda
wkhtmltopdf-aws-lambda-layer
AWS Lambda Layer for wkhtmltopdf
Stars: ✭ 62 (+244.44%)
Mutual labels:  wkhtmltopdf
pdfio
PDFio is a simple C library for reading and writing PDF files.
Stars: ✭ 55 (+205.56%)
Mutual labels:  pdf-generation
laravel-print-api
Laravel package to access our print-api
Stars: ✭ 16 (-11.11%)
Mutual labels:  pdf-generation
shelvery-aws-backups
Automating EBS RDS EC2 backups on lambda
Stars: ✭ 31 (+72.22%)
Mutual labels:  lambda
workshop-serverless-graphql
[AWSKRUG Serverless Group 2019] Serverless GraphQL Workshop
Stars: ✭ 80 (+344.44%)
Mutual labels:  lambda
carbone
Fast and simple report generator, from JSON to pdf, xslx, docx, odt...
Stars: ✭ 810 (+4400%)
Mutual labels:  pdf-generation
yake
A Rake-like DSL for writing AWS Lambda handlers
Stars: ✭ 146 (+711.11%)
Mutual labels:  lambda
Hands-On-Serverless-Applications-with-Go
Hands-On Serverless Applications with Go, published by Packt.
Stars: ✭ 92 (+411.11%)
Mutual labels:  lambda
review-pdf-generator-action
builds PDF via Re:VIEW and uploads as Artifacts
Stars: ✭ 15 (-16.67%)
Mutual labels:  pdf-generation
website-honestly
🦄 The Red Badger website. Honestly.
Stars: ✭ 26 (+44.44%)
Mutual labels:  lambda
lambdakiq
ActiveJob on SQS & Lambda
Stars: ✭ 131 (+627.78%)
Mutual labels:  lambda
aws-lambda-scheduler
aws-lambda-scheduler is EventBridge Rule manager that lets you call any existing AWS Lambda Function you have in a set future time with pre-set parameters. Allows more rule creation than AWS limit.
Stars: ✭ 58 (+222.22%)
Mutual labels:  lambda

Imprenta

An AWS lambda that generates PDF files from HTML using pdfkit and wkhtmltopdf.

This package will:

  • Read context variables from the API payload.
  • Render context varialbes with the vendor/templates/base.html.
  • Pass the rendered HTML to wkhtmltopdf to generate the PDF
  • Upload the PDF file to S3.
  • Return a signed URL of the PDF and the key.

This package is not feature complete. It is intended to be the starting point for a PDF generator as the HTML template will need to be coded, the context variables handled and authentication added.

Chalice microframework is used to do the aws configuration heavylifting.

Requirements

  • Docker
  • virtualenv (recommended).
  • GNU make
  • awscli python package installed and configured.

Bootstrapping

A bootstrap script has been created for convenience. Make sure the project virtualenv is activated before running this command.

$ make build

This command will:

  • Download and install wkhtmltopdf
  • Build docker and install amazon-linux specific dependencies.
  • Install package dependencies in the active python environment.
  • Prepare the chalice initial configuration.

After this command has been run the environment variables in pdf/.chalice/conf.json must be added. These AWS credentials must match the

Deploy

A command has been created to deploy the application

$ make deploy

Running it local

The lambda can be run locally, but the wkhtmltopdf binary won't run since it is using the linux binary at the moment.

$ make local
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].