Api2Pdf - PDF Generation, Powered by AWS Lambda
Introduction
is a powerful PDF generation API with no rate limits or file size constraints. Api2Pdf runs on AWS Lambda, a serverless architecture powered by Amazon to scale to millions of requests while being up to 90% cheaper than alternatives. Supports wkhtmltopdf, Headless Chrome, LibreOffice, and PDF Merge. You can also generate barcodes with ZXING (Zebra Crossing).
SDKs & Client Libraries
We've made a number of open source libraries available for the API
- Python:
- .NET:
- Nodejs:
- PHP:
- Ruby: (Coming soon)
Authorization
Create an account at to get an API key.
Authorize your API calls
- GET requests, include apikey=YOUR-API-KEY as a query string parameter
- POST requests, add Authorization to your header.
Authorization: YOUR-API-KEY
Quickstart
If you are looking for just a quick call to grab PDFs of a URL, you can do a GET request like:
https://v2018.api2pdf.com/chrome/url?url={UrlToConvert}&apikey={YourApiKey}
For more advanced usage and settings, see the API specification below.
- Homepage
- https://api.apis.guru/v2/specs/api2pdf.com/1.0.0.json
- Provider
- api2pdf.com
- OpenAPI version
- 3.0.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/openapi.yaml
Tools (11)
Extracted live via the executor SDK.
-
headlessChrome.chromeFromHtmlPostConvert HTML to a PDF using Headless Chrome on AWS Lambda.
Authorize via Header of Request
Authorization: YOUR-API-KEY
-
headlessChrome.chromeFromUrlGetConvert a URL or Web Page to PDF using Headless Chrome on AWS Lambda. This GET request is for convenience and does not support advanced options. Use the POST request for more flexibility.
Authorize via Query String Parameter
apikey=YOUR-API-KEY
Example
https://v2018.api2pdf.com/chrome/url?url={UrlToConvert}&apikey={YourApiKey} -
headlessChrome.chromeFromUrlPostConvert a URL or Web Page to PDF using Headless Chrome on AWS Lambda..
Authorize via Header of Request
Authorization: YOUR-API-KEY
-
libreOffice.libreConvertPostConvert an office document (Word, Excel, Powerpoint) or an image (jpg, gif, png) to a PDF using LibreOffice on AWS Lambda.
Authorize via Header of Request
Authorization: YOUR-API-KEY
-
mergeCombinePdfs.mergePostMerge two or more PDFs together on AWS Lambda.
Authorize via Header of Request
Authorization: YOUR-API-KEY
-
wkhtmltopdf.wkhtmltopdfFromHtmlPostConvert HTML to a PDF using WkHtmlToPdf on AWS Lambda.
Authorize via Header of Request
Authorization: YOUR-API-KEY
-
wkhtmltopdf.wkhtmltopdfFromUrlGetConvert a URL or Web Page to PDF using WkHtmlToPdf on AWS Lambda. This GET request is for convenience and does not support advanced options. Use the POST request for more flexibility.
Authorize via Query String Parameter
apikey=YOUR-API-KEY
Example
https://v2018.api2pdf.com/wkhtmltopdf/url?url={UrlToConvert}&apikey={YourApiKey} -
wkhtmltopdf.wkhtmltopdfFromUrlPostConvert a URL or Web Page to PDF using WkHtmlToPdf on AWS Lambda..
Authorize via Header of Request
Authorization: YOUR-API-KEY
-
zxingZebraCrossingBarCodes.zebraGetSee full list of options and documentation
Authorize via Query String Parameter
apikey=YOUR-API-KEY
Example
https://v2018.api2pdf.com/zebra?format={format}&apikey={YourApiKey}&value={YourText} -
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools