Check the FileToPDF connection and return the plan, remaining conversion credits, and subscription status. Free — never costs credits. Call it to verify the API key works, or after a failed conversion to see whether credits ran out. No API key yet? Anyone can get one free, in one click, at https://filetopdf.dev (10 free conversions, no signup).
Convert a document at a public URL into a PDF. Handles Office documents (DOCX, XLSX, PPTX, ODT, RTF, TXT, CSV…), images (PNG, JPG, WebP…), web pages/HTML files, Markdown files, and existing PDFs (passthrough) — the conversion engine is auto-detected from the file extension. Use this when the source lives at a URL; for raw HTML or Markdown strings use convert_html / convert_markdown instead. Returns the PDF as an embedded application/pdf resource (optionally also written to disk via save_path). Costs 1 credit on success; failed conversions are free.
Render a raw HTML string into a pixel-perfect PDF with a real Chromium engine — ideal for generating invoices, reports, receipts, certificates, letters, and other documents from templates. Optional css is injected into the document <head>; full layout control via paper size, margins, landscape, scale, page ranges, background printing, PDF/A archival conformance, and password protection. Returns the PDF as an embedded application/pdf resource (optionally also written to disk via save_path). Costs 1 credit on success; failed conversions are free.
Render a Markdown string into a clean, professional PDF — the fastest way to turn notes, reports, documentation, summaries, or any agent-written text into a shareable document. A sensible default stylesheet is applied when no css is given; pass custom CSS to fully control typography and branding, plus layout options (paper size, margins, landscape, page ranges, PDF/A, passwords). Returns the PDF as an embedded application/pdf resource (optionally also written to disk via save_path). Costs 1 credit on success; failed conversions are free.