PDF to HTML
PDFtoHTMLPDF to HTML: PDF to HTML converts the pages of a PDF, uploaded or fetched from a URL, into one self-contained HTML file that looks like the original: same layout, embedded fonts and images, and real selectable text. Choose a page range, unlock password-protected PDFs, or ask for text only; long documents are converted in batches, with nextPage pointing to the next one. (Cost: 20 credits) REST: POST https://api.apiverve.com/v1/pdftohtml, multipart/form-data with the file in "pdf" and other params as form fields, key in the x-api-key header. Docs: https://apiverve.com/md/marketplace/pdftohtml.md
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "PDFtoHTML"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | The PDF file to convert (up to 10 MB), or a public PDF URL | ||
| pages | No | One page or range: 3, 2-7, or 5- for page 5 onwards. Each call converts up to 10 pages (2 on the Free plan) from the start of the range; nextPage says where to continue | 1- |
| password | No | User or owner password of an encrypted PDF | |
| textOnly | No | Leave out images and vector graphics and keep only the positioned text in its fonts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |