This project is an example implementation of the Pdf Generator API hosted on RapidApi
This API allows you to quickly generate a PDF document from HTML or from an URL.
Simple and high customizable api to Generate PDF documents.
Find here some example on how to use it from a front-end: https://github.com/domware-apps/pdf-generator-frontend
Endpoint | Method | Description |
---|---|---|
/html | POST | convert HTML to PDF document |
/url | POST | generate PDF from a public website |
Key | Type | Options | Default |
---|---|---|---|
output | object | outputs | { “type”: “application/pdf”, “name”: “download.pdf” } |
printBackground | boolean | false |
You can choose the type of output you want.
Key | Type | Options | Default | Note |
---|---|---|---|---|
type | string | “base64”, “application/pdf” | “application/pdf” | |
name | string | download.pdf | This will work only for "type": "application/pdf" |
You can find some examples of implementations of this API here:
output
option validationtype: application/pdf
output.name
added