Search by

apiverve / pdftohtml

APIVerve

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 con

Package info

github.com/apiverve/pdftohtml-api

Homepage

Documentation

Language:C#

pkg:composer/apiverve/pdftohtml

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.2.6 2026-11-16 18:54 UTC

This package is auto-updated.

Last update: 2026-11-16 21:08:21 UTC


README

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.

The PDF to HTML API provides a simple, reliable way to integrate pdf to html functionality into your applications. Built for developers who need production-ready pdf to html capabilities without the complexity of building from scratch.

View API Details →

License: MIT API Status Method Platform

Available on: npm NuGet PyPI RubyGems Packagist Go Dart JitPack

Quick Start

Using JavaScript

async function callPDFtoHTMLAPI() {
    try {
        const requestBody = {
    "pdf": "https://raw.githubusercontent.com/mozilla/pdf.js/master/web/compressed.tracemonkey-pldi-09.pdf",
    "pages": "1-"
};

        const response = await fetch('https://api.apiverve.com/v1/pdftohtml', {
            method: 'POST',
            headers: {
                'x-api-key': 'YOUR_API_KEY_HERE',
                'Content-Type': 'application/json'
            },
            body: JSON.stringify(requestBody)
        });

        const data = await response.json();
        console.log(data);
    } catch (error) {
        console.error('Error:', error);
    }
}

callPDFtoHTMLAPI();

Using cURL

curl -X POST "https://api.apiverve.com/v1/pdftohtml" \
  -H "x-api-key: YOUR_API_KEY_HERE" \
  -F "pdf=@/path/to/your-file"
# Accepted formats: .pdf (max 10MB)

Get your API key: https://apiverve.com

📁 For more examples, see the examples folder

Installation

Choose your preferred programming language:

📦 NPM (JavaScript/Node.js)

npm install @apiverve/pdftohtml

View NPM Package → | Package Code →

🔷 NuGet (.NET/C#)

dotnet add package APIVerve.API.PDFtoHTML

View NuGet Package → | Package Code →

🐍 Python (PyPI)

pip install apiverve-pdftohtml

View PyPI Package → | Package Code →

💎 Ruby (RubyGems)

gem install apiverve_pdftohtml

View RubyGems Package → | Package Code →

🐘 PHP (Packagist)

composer require apiverve/pdftohtml

View Packagist Package → | Package Code →

🎯 Dart (pub.dev)

dart pub add apiverve_pdftohtml

View pub.dev Package → | Package Code →

🤖 Android (JitPack)

implementation 'com.github.apiverve:pdftohtml-api:1.0.0'

Package Code →

🐹 Go

go get github.com/apiverve/pdftohtml-api/go

Package Code →

Why Use This API?

Feature Benefit
Multi-language SDKs Native packages for JavaScript, Python, C#, Go, and Android
Simple Integration Single API key authentication, consistent response format
Production Ready 99.9% uptime SLA, served from 24 global regions
Comprehensive Docs Full examples, OpenAPI spec, and dedicated support

Documentation

What Can You Build?

The PDF to HTML API is commonly used for:

  • Web Applications - Add pdf to html features to your frontend or backend
  • Mobile Apps - Native SDKs for Android development
  • Automation - Integrate with n8n, Zapier, or custom workflows
  • SaaS Products - Enhance your product with pdf to html capabilities
  • Data Pipelines - Process and analyze data at scale

API Reference

Authentication

All requests require an API key in the header:

x-api-key: YOUR_API_KEY_HERE

Get your API key: https://apiverve.com

Response Format

Every APIVerve endpoint returns the same envelope — check status, then read data:

{
  "status": "ok",
  "error": null,
  "data": { ... }
}

Example Response

A real response from the PDF to HTML API:

{
  "status": "ok",
  "error": null,
  "data": {
    "htmlName": "7c1e4b9a-2f3d-4e8a-9b6c-5d0a1f2e3c4b.html",
    "pageCount": 14,
    "firstPage": 1,
    "lastPage": 10,
    "pagesConverted": 10,
    "nextPage": 11,
    "textOnly": false,
    "encrypted": false,
    "size": 1873402,
    "inline": false,
    "html": null,
    "expires": 1792400000000,
    "downloadURL": "https://storage.googleapis.com/apiverve/APIData/pdftohtml/7c1e4b9a-2f3d-4e8a-9b6c-5d0a1f2e3c4b.html?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1792400000&Signature=SAMPLE"
  }
}

Support & Community

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Security

For security concerns, please review our Security Policy.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Built with ❤️ by APIVerve

Copyright © 2026 APIVerve. All rights reserved.