Web2Doc

Documentation

Web2Doc API

Need an API key to get started?Contact us

The Web2Doc API provides access to the Web2Doc platform, allowing you to convert HTML to PDF.

Endpoints

Convert

Generates a PDF document from HTML content

Method

POST

URL

/v1/convert

Request Parameters

ParameterDescriptionRequired
data[String] Content to be convertedYes
type[String] Type of content to be converted. Allowed values: 'html'Yes
options[Object] Convert optionsNo
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

Example Request

curl -X GET https://web2doc.dev/v1/convert \""\n -H "Authorization: Bearer YOUR_ACCESS_TOKEN\"

Example Response

{
  "type": "Buffer",
  "data": []
}