Integration

Api2Pdf integration

Api2Pdf generates and converts documents: render web pages, raw HTML or Markdown to PDF or images with Headless Chrome (or wkhtmltopdf), convert Word, Excel, PowerPoint and other files to PDF, turn HTML into .docx or .xlsx, extract PDFs to Markdown, HTML or JSON for data extraction, merge, split, watermark and password-protect PDFs, zip files and generate barcodes or QR codes. Every tool except delete_file answers with a FileUrl link to the result, kept for 24 hours. The GET convenience variants of the URL converters, the health check and the balance check are not exposed. Authentication is the API key from the Api2Pdf portal, sent as is in the Authorization header.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Api2Pdf.Built from the 23 Api2Pdf tools below, on the connection you add once.

What you can do with Api2Pdf

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Html, 4 operations

  • chrome_html_to_imageChrome html to imagePOSTAgents: ask firstRenders raw HTML to an image with Headless Chrome and returns a link to the image (FileUrl). Useful for social cards, receipts or previews built as HTML.
  • chrome_html_to_pdfChrome html to pdfPOSTAgents: ask firstRenders raw HTML (with inline or linked CSS) to PDF with Headless Chrome and returns a link to the PDF (FileUrl). Use it for invoices, reports or any document you build as HTML.
  • pdf_to_htmlPdf to htmlPOSTAgents: ask firstExtracts the content of a PDF at a public URL as HTML with OpenDataLoader. Returns a link to the HTML file (FileUrl).
  • wkhtml_html_to_pdfWkhtml html to pdfPOSTAgents: ask firstConverts raw HTML to PDF with the wkhtmltopdf engine and returns a link to the PDF (FileUrl). Api2Pdf recommends chrome_html_to_pdf instead; use this for legacy layouts or its table of contents.

Markdown, 3 operations

  • chrome_markdown_to_imageChrome markdown to imagePOSTAgents: ask firstRenders raw Markdown to an image with Headless Chrome and returns a link to the image (FileUrl).
  • chrome_markdown_to_pdfChrome markdown to pdfPOSTAgents: ask firstRenders raw Markdown to PDF with Headless Chrome, without an intermediate HTML step, and returns a link to the PDF (FileUrl).
  • pdf_to_markdownPdf to markdownPOSTAgents: ask firstExtracts the text of a PDF at a public URL as Markdown with OpenDataLoader, keeping headings, lists and tables where the PDF structure allows. Returns a link to the Markdown file (FileUrl).

Url, 3 operations

  • chrome_url_to_imageChrome url to imagePOSTAgents: ask firstTakes a screenshot of a public web page with Headless Chrome and returns a link to the image (FileUrl). Options set the viewport size, full-page capture and a render delay.
  • chrome_url_to_pdfChrome url to pdfPOSTAgents: ask firstRenders a public web page to PDF with Headless Chrome and returns a link to the PDF (FileUrl). Options control paper size, margins, orientation, headers and footers, and waiting for the page to load.
  • wkhtml_url_to_pdfWkhtml url to pdfPOSTAgents: ask firstConverts a public web page to PDF with the wkhtmltopdf engine and returns a link to the PDF (FileUrl). Api2Pdf recommends chrome_url_to_pdf instead; use this for legacy layouts or its table of contents.

Any to pdf, 1 operation

  • office_file_to_pdfOffice file to pdfPOSTAgents: ask firstConverts a Word, Excel, PowerPoint, image, text, email or other LibreOffice-readable file at a public URL to PDF and returns a link to the PDF (FileUrl).

Extract page, 1 operation

  • extract_pdf_pagesExtract pdf pagesPOSTAgents: ask firstExtracts a page range from a PDF at a public URL into a new PDF and returns a link to it (FileUrl). Pages are counted from 0, and negative numbers count from the end (-1 is the last page).

File, 1 operation

  • delete_fileDelete fileDELETEAgents: ask firstDeletes a file Api2Pdf generated, right away instead of after the automatic 24-hour expiry. Pass the ResponseId returned by the call that created the file.

Html to docx, 1 operation

  • html_to_docxHtml to docxPOSTAgents: ask firstConverts HTML to a Microsoft Word file (.docx) and returns a link to it (FileUrl). Send the HTML itself in Html, or a link to an HTML page in Url; Html wins when both are given.

Html to xlsx, 1 operation

  • html_to_xlsxHtml to xlsxPOSTAgents: ask firstConverts HTML tables to a Microsoft Excel workbook (.xlsx) and returns a link to it (FileUrl). Send the HTML itself in Html, or a link to an HTML page in Url; Html wins when both are given.

Json, 1 operation

  • pdf_to_jsonPdf to jsonPOSTAgents: ask firstExtracts the content of a PDF at a public URL as structured JSON with OpenDataLoader (headings, paragraphs, tables and their layout), for data extraction or RAG pipelines. Returns a link to the JSON file (FileUrl).

Markitdown, 1 operation

  • file_to_markdownFile to markdownPOSTAgents: ask firstConverts a PDF, Office document, HTML page or other file at a public URL to clean Markdown with Microsoft MarkItDown, for search, storage or LLM input. Returns a link to the Markdown file (FileUrl).

Merge, 1 operation

  • merge_pdfsMerge pdfsPOSTAgents: ask firstMerges several PDFs, given as public URLs, into one PDF in the order listed and returns a link to the merged file (FileUrl). Chain it after the conversion tools by passing their FileUrl values.

Password, 1 operation

  • add_pdf_passwordAdd pdf passwordPOSTAgents: ask firstAdds password protection to an existing PDF at a public URL and returns a link to the protected copy (FileUrl). The user password is needed to open it; the optional owner password controls permissions.

Thumbnail, 1 operation

  • generate_thumbnailGenerate thumbnailPOSTAgents: ask firstGenerates an image of the first page of a PDF or Office document at a public URL and returns a link to the image (FileUrl). Useful for previews in a list of documents.

Watermark, 1 operation

  • add_pdf_watermarkAdd pdf watermarkPOSTAgents: ask firstStamps a text watermark (for example DRAFT or CONFIDENTIAL) on every page of a PDF at a public URL and returns a link to the watermarked copy (FileUrl). Font size, color, opacity and rotation are adjustable.

Zebra, 1 operation

  • generate_barcodeGenerate barcodeGETAgents: ask firstGenerates a barcode or QR code image with ZXing (QR_CODE, CODE_128, CODE_39, EAN_13, UPC_A, DATA_MATRIX, PDF_417 and more) and returns a link to the image (FileUrl).

Zip, 1 operation

  • create_zipCreate zipPOSTAgents: ask firstDownloads several files from public URLs and packs them into one .zip archive, each under the file name or sub-folder path you choose, and returns a link to the archive (FileUrl).

Use Api2Pdf from Claude Code, Cursor or Codex

Connect Api2Pdf in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Api2Pdf operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Api2Pdf

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Api2Pdf once

    Add your Api2Pdf connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Api2Pdf integration FAQ

What can you do with the Api2Pdf integration?

LiveContext exposes 23 operations on Api2Pdf, covering html, markdown, url and any to pdf.

Popular integrations

Browse the whole catalog