Documents

HTML to PDF

Convert HTML content to a PDF file

post/v1/htmltopdf

Request

  • Base URL: https://api.apiverve.com
  • URL: https://api.apiverve.com/v1/htmltopdf
  • Auth: API key in header x-api-key

Request body

htmlstring required

The HTML content to convert to PDF. Ensure that the HTML is escaped properly

marginTopnumber

The top margin of the PDF in inches (e.g., 0.5)

marginRightnumber

The right margin of the PDF in inches (e.g., 0.5)

marginBottomnumber

The bottom margin of the PDF in inches (e.g., 0.5)

marginLeftnumber

The left margin of the PDF in inches (e.g., 0.5)

landscapeboolean

Set to true for landscape orientation

Response

Successful Response

statusstring

status

errorstring

error

dataobject

data

Changes

No recorded changes to this operation across all 1 revision of this API.