Content & Files · Developer Tools

API2PDF

Api2Pdf is a REST API that enables developers to generate PDFs from HTML, URLs, and various document formats using engines like wkhtmltopdf, Headless Chrome, and LibreOffice.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Add Header Footer

    Convert HTML to PDF with customizable headers and footers using Headless Chrome. Use for generating reports, invoices, or documents with consistent page numbering, titles, dates, or branding on every page.

  • Extract PDF Pages

    Tool to extract specific pages from a PDF document. Use when you need only certain pages from a larger PDF file. Provide a URL to the source PDF and optionally a page range (0-indexed, end exclusive). Returns a URL to the extracted PDF.

  • LibreOffice PDF to HTML

    Tool to convert a PDF document to HTML using LibreOffice. Use when you need HTML output of a PDF file (experimental; images may be excluded).

  • LibreOffice Thumbnail

    Tool to generate a thumbnail image of a document using LibreOffice. Use when you need a quick visual preview of a PDF or Office file's first page.

  • Merge PDFs

    Merge multiple PDF documents into a single PDF file. Provide a list of publicly accessible PDF URLs, and they will be combined in the order specified. The merged PDF is available via a download URL for 24 hours.

  • Optimize PDF

    Tool to optimize a PDF document to reduce file size while maintaining quality. Use when you need to minimize storage or bandwidth for an existing PDF.

  • Reorder PDF Pages

    Reorder pages of a PDF using a source URL and a list of zero-based page indices in the desired order. It extracts each requested page into an intermediate PDF before merging them; generated files are normally deleted after 24 hours.

  • Generate Barcode or QR Code

    Request a barcode or QR code for a text value using ZXing. The tool sends a GET request and returns the raw response body as image bytes.