Web2DocNeed an API key to get started?Contact us
The Web2Doc API provides access to the Web2Doc platform, allowing you to convert HTML to PDF.
Generates a PDF document from HTML content
Method
POST
URL
/v1/convert
| Parameter | Description | Required |
|---|---|---|
| data | [String] Content to be converted | Yes |
| type | [String] Type of content to be converted. Allowed values: 'html' | Yes |
| options | [Object] Convert options | No |
| responseFormat | [String] If supplied, will return a string instead of a file. Allowed values: 'buffer', 'base64' | No |
| fileType | [String] File type. Allowed values: 'pdf'. Default - 'pdf' | No |
curl -X GET https://web2doc.dev/v1/convert \""\n -H "Authorization: Bearer YOUR_ACCESS_TOKEN\"
{
"type": "Buffer",
"data": []
}