View Code? Open in Web Editor
NEW
Online service to mail a PDF document anywhere in the U.S. under 60 seconds.
Home Page: https://mailpdf.online/
JavaScript 60.25%
HTML 29.16%
CSS 10.24%
Shell 0.36%
mailpdf's Introduction
Mail a PDF Online
- Install Ghostscript in your container
- Set the following required environment variables:
LOB_API_KEY_TEST
LOB_API_KEY
STRIPE_API_KEY_TEST
STRIPE_API_KEY
SENDGRID_API_KEY
ADMIN_EMAIL
(email address for admin alerts)
- Set Nginx max upload size to the max upload size specified in (app.js) by following this example
- Set up a one-off process to delete old uploads. This example deletes files older than 1 day:
find static/uploads/* -mtime +1 -exec rm {} \;
.
Routes
- POST /upload
- POST /verify_address
- POST /checkout
- GET /track/{packageID}
Todo
mailpdf's People
Contributors
Stargazers
mailpdf's Issues
Steps to reproduce:
- upload a 25-page pdf
- don't add any options
- try to check out
- Stripe fails with "invalid integer" because of a rounding error
Solution: Probably just work in cents. See: http://stackoverflow.com/a/3439981
Per email "[1st Notice] Upcoming Lob API Changes"