Api2Pdf - PDF Generation, Powered by AWS Lambda
  1. Headless Chrome
Api2Pdf - PDF Generation, Powered by AWS Lambda
  • Headless Chrome
    • Convert raw HTML to PDF
      POST
    • Convert URL to PDF
      GET
    • Convert URL to PDF
      POST
  • LibreOffice
    • Convert office document or image to PDF
      POST
  • Merge
    • Combine Pdfs
      • Merge multiple PDFs together
  • wkhtmltopdf
    • Convert raw HTML to PDF
      POST
    • Convert URL to PDF
      GET
    • Convert URL to PDF
      POST
  • ZXING (Zebra Crossing) Bar Codes
    • Generate bar codes and QR codes with ZXING.
      GET
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy
    POST
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy
    GET
  • /2015-03-31/functions/{FunctionName}/policy
    POST
  • /2015-03-31/functions/{FunctionName}/policy
    GET
  • /2015-03-31/functions/{FunctionName}/aliases
    POST
  • /2015-03-31/functions/{FunctionName}/aliases
    GET
  • /2020-04-22/code-signing-configs/
    POST
  • /2020-04-22/code-signing-configs/
    GET
  • /2015-03-31/event-source-mappings/
    POST
  • /2015-03-31/event-source-mappings/
    GET
  • /2015-03-31/functions
    POST
  • /2015-03-31/functions/{FunctionName}/aliases/{Name}
    DELETE
  • /2015-03-31/functions/{FunctionName}/aliases/{Name}
    GET
  • /2015-03-31/functions/{FunctionName}/aliases/{Name}
    PUT
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
    DELETE
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
    GET
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}
    PUT
  • /2015-03-31/event-source-mappings/{UUID}
    DELETE
  • /2015-03-31/event-source-mappings/{UUID}
    GET
  • /2015-03-31/event-source-mappings/{UUID}
    PUT
  • /2015-03-31/functions/{FunctionName}
    DELETE
  • /2015-03-31/functions/{FunctionName}
    GET
  • /2020-06-30/functions/{FunctionName}/code-signing-config
    DELETE
  • /2020-06-30/functions/{FunctionName}/code-signing-config
    GET
  • /2020-06-30/functions/{FunctionName}/code-signing-config
    PUT
  • /2017-10-31/functions/{FunctionName}/concurrency
    DELETE
  • /2017-10-31/functions/{FunctionName}/concurrency
    PUT
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    DELETE
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    GET
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    PUT
  • /2019-09-25/functions/{FunctionName}/event-invoke-config
    POST
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}
    DELETE
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}
    GET
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    DELETE
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    GET
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    PUT
  • /2016-08-19/account-settings/
    GET
  • /2019-09-30/functions/{FunctionName}/concurrency
    GET
  • /2015-03-31/functions/{FunctionName}/configuration
    GET
  • /2015-03-31/functions/{FunctionName}/configuration
    PUT
  • /2018-10-31/layers
    GET
  • /2015-03-31/functions/{FunctionName}/invocations
    POST
  • /2014-11-13/functions/{FunctionName}/invoke-async/
    POST
  • /2019-09-25/functions/{FunctionName}/event-invoke-config/list
    GET
  • /2015-03-31/functions/
    GET
  • /2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions
    GET
  • /2018-10-31/layers/{LayerName}/versions
    GET
  • /2018-10-31/layers/{LayerName}/versions
    POST
  • /2018-10-31/layers
    GET
  • /2019-09-30/functions/{FunctionName}/provisioned-concurrency
    GET
  • /2017-03-31/tags/{ARN}
    GET
  • /2017-03-31/tags/{ARN}
    POST
  • /2015-03-31/functions/{FunctionName}/versions
    GET
  • /2015-03-31/functions/{FunctionName}/versions
    POST
  • /2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}
    DELETE
  • /2015-03-31/functions/{FunctionName}/policy/{StatementId}
    DELETE
  • /2017-03-31/tags/{ARN}
    DELETE
  • /2015-03-31/functions/{FunctionName}/code
    PUT
  1. Headless Chrome

Convert raw HTML to PDF

The AWS Lambda multi-region endpoint
http://lambda.{region}.amazonaws.com
The AWS Lambda multi-region endpoint
http://lambda.{region}.amazonaws.com
POST
/chrome/html
Convert HTML to a PDF using Headless Chrome on AWS Lambda.

Authorize via Header of Request#

Authorization: YOUR-API-KEY
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://lambda.{region}.amazonaws.com/chrome/html' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fileName": "test.pdf",
    "html": "<p>Hello World</p>",
    "inlinePdf": true,
    "options": {
        "landscape": "true",
        "printBackground": false
    }
}'
Response Response Example
200 - Example 1
{
    "cost": 0.0007979,
    "mbIn": 0.06463,
    "mbOut": 0.73327,
    "pdf": "https://link-to-your-pdf",
    "success": true
}

Request

Body Params application/json

Examples

Responses

🟢200A JSON object containing the url to the PDF and other meta data
application/json
Body

🟠401Failed to generate PDF
Modified at 2023-08-15 08:35:15
Next
Convert URL to PDF
Built with