# Api2Pdf - PDF Generation, Powered by AWS Lambda API

> Api2Pdf - PDF Generation, Powered by AWS Lambda API on Apizie: 9 endpoints (Convert raw HTML to PDF, Convert URL to PDF, Convert URL to PDF, Convert office document or image to PDF, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/dev-tools:api2pdf/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `dev-tools:api2pdf`
- Category: Dev Tools
- Status: byok
- Source: https://api2pdf.com
- Page: https://zieapi.vercel.app/api/dev-tools/api2pdf
- OpenAPI: https://zieapi.vercel.app/api/dev-tools/api2pdf/openapi.json

# 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 serverless architecture powered by Amazon to scale to…

## Endpoints

### Convert raw HTML to PDF
`POST https://zieapi.vercel.app/v1/dev-tools:api2pdf/chrome-from-html-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Convert URL to PDF
`GET https://zieapi.vercel.app/v1/dev-tools:api2pdf/chrome-from-url-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Url of the page to convert to PDF. Must start with http:// or https://. |
| output | string | no | Specify output=json to receive a JSON output. Defaults to PDF file. |

### Convert URL to PDF
`POST https://zieapi.vercel.app/v1/dev-tools:api2pdf/chrome-from-url-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Convert office document or image to PDF
`POST https://zieapi.vercel.app/v1/dev-tools:api2pdf/libre-convert-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Merge multiple PDFs together
`POST https://zieapi.vercel.app/v1/dev-tools:api2pdf/merge-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Convert raw HTML to PDF
`POST https://zieapi.vercel.app/v1/dev-tools:api2pdf/wkhtmltopdf-from-html-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Convert URL to PDF
`GET https://zieapi.vercel.app/v1/dev-tools:api2pdf/wkhtmltopdf-from-url-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Url of the page to convert to PDF. Must start with http:// or https://. |
| output | string | no | Specify output=json to receive a JSON output. Defaults to PDF file. |

### Convert URL to PDF
`POST https://zieapi.vercel.app/v1/dev-tools:api2pdf/wkhtmltopdf-from-url-post` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Generate bar codes and QR codes with ZXING.
`GET https://zieapi.vercel.app/v1/dev-tools:api2pdf/zebra-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| format | string | yes | Most common is CODE_39 or QR_CODE |
| value | string | yes | Specify the text value you want to convert |
| showlabel | boolean | no | Show label of text below barcode |
| height | integer | no | Height of the barcode generated image |
| width | integer | no | Width of the barcode generated image |

## Example
```
curl "https://zieapi.vercel.app/v1/dev-tools:api2pdf/chrome-from-html-post" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Api2Pdf - PDF Generation, Powered by AWS Lambda API?
Create a free Apizie key, then send POST https://zieapi.vercel.app/v1/dev-tools:api2pdf/chrome-from-html-post with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Api2Pdf - PDF Generation, Powered by AWS Lambda API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Api2Pdf - PDF Generation, Powered by AWS Lambda itself also needs your own key from api2pdf.com.

### Can AI agents use the Api2Pdf - PDF Generation, Powered by AWS Lambda API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key dev-tools:api2pdf.

### What is the status of the Api2Pdf - PDF Generation, Powered by AWS Lambda API?
Needs your own provider key (bring your own key)
