Api2Pdf - PDF Generation, Powered by AWS Lambda
Introduction [Api2Pdf](https://www.api2pdf.com) is a powerful PDF generation API with no rate limits or file size constraints. Api2Pdf runs on AWS Lambda, a…
Developer tools#openapi#developer-tools
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Introduction
Api2Pdf 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: https://github.com/api2pdf/api2pdf.python
- .NET: https://github.com/api2pdf/api2pdf.dotnet
- Nodejs: https://github.com/api2pdf/api2pdf.node
- PHP: https://github.com/Api2Pdf/api2pdf.php
- Ruby: (Coming soon)
Authorization
Create an account at portal.api2pdf.com 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.
# Quickstart
If you are looking for just a quick call to grab PDFs of a URL, you can do a GET request like:For more advanced usage and settings, see the API specification below.
Endpoints 9
Headless Chrome
- POSTConvert raw HTML to PDF
/chrome/htmlConvert HTML to a PDF using Headless Chrome on AWS Lambda. Authorize via Header of Request Authorization: YOUR-API-KEY - GETConvert URL to PDF
/chrome/url?url=string&output=stringConvert 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… - POSTConvert URL to PDF
/chrome/urlConvert a URL or Web Page to PDF using Headless Chrome on AWS Lambda.. Authorize via Header of Request Authorization: YOUR-API-KEY
LibreOffice
- POSTConvert office document or image to PDF
/libreoffice/convertConvert 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…
Merge / Combine Pdfs
- POSTMerge multiple PDFs together
/mergeMerge two or more PDFs together on AWS Lambda. Authorize via Header of Request Authorization: YOUR-API-KEY
wkhtmltopdf
- POSTConvert raw HTML to PDF
/wkhtmltopdf/htmlConvert HTML to a PDF using WkHtmlToPdf on AWS Lambda. Authorize via Header of Request Authorization: YOUR-API-KEY - GETConvert URL to PDF
/wkhtmltopdf/url?url=string&output=stringConvert 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… - POSTConvert URL to PDF
/wkhtmltopdf/urlConvert a URL or Web Page to PDF using WkHtmlToPdf on AWS Lambda.. Authorize via Header of Request Authorization: YOUR-API-KEY
ZXING (Zebra Crossing) Bar Codes
- GETGenerate bar codes and QR codes with ZXING.
/zebra?format=string&value=string&showlabel=true&height=0&width=0See full list of options and documentation here Authorize via Query String Parameter apikey=YOUR-API-KEY Example
API details
- Base URL
https://v2018.api2pdf.com- Authentication
- An API key in the Authorization header
An API key in the apikey query parameter - Operations
- 9 operations on 7 pathsPOST 6GET 3
- Main resources
- Headless Chrome 3wkhtmltopdf 3LibreOffice 1Merge / Combine Pdfs 1ZXING (Zebra Crossing) Bar Codes 1
- Response formats
application/jsonapplication/pdfimage/png- Description format
- OpenAPI 3.0.0, API version
1.0.0 - Links
- Documentation · OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Api2Pdf - PDF Generation, Powered by AWS Lambda in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Api2Pdf - PDF Generation, Powered by AWS Lambda collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Convert raw HTML to PDF” (POST /chrome/html), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Api2Pdf - PDF Generation, Powered by AWS Lambda?
Introduction [Api2Pdf](https://www.api2pdf.com) is a powerful PDF generation API with no rate limits or file size constraints. Api2Pdf runs on AWS Lambda, a… It is listed under Developer tools and has 9 endpoints.
Who publishes the Api2Pdf - PDF Generation, Powered by AWS Lambda?
It is listed from API2PDF's public API description (an OpenAPI document), not published by API2PDF on Swastik Codes. Anyone who controls api2pdf.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Api2Pdf - PDF Generation, Powered by AWS Lambda?
Requests go to https://v2018.api2pdf.com. Endpoint paths are added to this base URL.
How do I authenticate with the Api2Pdf - PDF Generation, Powered by AWS Lambda?
It accepts 2 methods: an API key in the Authorization header; an API key in the apikey query parameter.
How many endpoints does the Api2Pdf - PDF Generation, Powered by AWS Lambda have?
9 operations on 7 paths (6 POST, 3 GET). The largest groups are Headless Chrome, wkhtmltopdf, LibreOffice, Merge / Combine Pdfs.
Is forking the Api2Pdf - PDF Generation, Powered by AWS Lambda free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.