# Self-Hosting Open-Source PDF Craft vs. Cloud: Setup, Hardware, and Real Cost

[HTML](https://pdfcraft.ai/blog/self-hosted-vs-cloud-pdf-craft/)
[Site index](https://pdfcraft.ai/llms.txt)

Author: PDF Craft
Published: 2026-11-23
Updated: 2026-11-23

Compare PDF Craft's hosted cloud web app, Python with remote vendor OCR, and local NVIDIA GPU self-hosting across setup dependencies, privacy, and real per-book cost.

![Diagram comparing three ways to run PDF Craft: Cloud Web, Python plus Vendor OCR, and Python plus Local GPU](https://pdfcraft.ai/blog-assets/self-hosted-vs-cloud-pdf-craft/three-deployment-paths.webp "Diagram: side-by-side comparison of setup requirements across PDF Craft Cloud Web, Python with remote vendor OCR, and self-hosted local GPU deployment.")

When developers and readers discover the MIT-licensed [PDF Craft repository](https://github.com/oomol-lab/pdf-craft), the first practical question is almost always: **Should I install the open-source library myself for free, or just use the hosted service at `pdfcraft.ai`?**

The honest answer depends on your **hardware, privacy constraints, engineering time, and monthly page volume**. Open-source software is free to install, not free of setup and compute overhead; meanwhile, pay-as-you-go cloud conversion often costs less than people assume.

## 1. Three Ways to Run PDF Craft

PDF Craft actually offers three distinct paths rather than a binary choice:

| Dimension                                           | Option 1: Cloud Web (`pdfcraft.ai`)                    | Option 2: Open Source + Remote Vendor OCR                                                                                       | Option 3: Open Source + Local NVIDIA GPU                                                                                                                  |
| --------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **What you install**                                | Browser only (or call Cloud API / MCP)                 | Python 3.11–3.13, Poppler, `pip install pdf-craft`                                                                              | All of Option 2 + `pdf-craft[local]`, NVIDIA drivers, matching CUDA PyTorch, local model weights                                                          |
| **Extra dependencies for Translated PDF writeback** | None                                                   | Ghostscript, PySide6/Qt, local fonts (plus Matplotlib & TeX `latex` for vector inline math)                                     | Same as Option 2                                                                                                                                          |
| **Local GPU requirement**                           | None                                                   | None                                                                                                                            | CUDA-capable NVIDIA GPU with sufficient VRAM (Macs and CPU-only machines cannot run local CUDA mode)                                                      |
| **OCR backend flexibility**                         | Managed in cloud                                       | Connect DeepSeek OCR, DeepSeek OCR 2, or Baidu Unlimited OCR endpoints (check the OCR backend guide for your installed release) | Run DeepSeek OCR / OCR 2 or Unlimited OCR locally                                                                                                         |
| **Data flow**                                       | Uploaded to hosted conversion service                  | Pages sent to your chosen third-party OCR / LLM API                                                                             | OCR stays completely offline on your machine (optional remote LLMs for translation, TOC analysis, or metadata extraction still send text to that service) |
| **Best fit**                                        | Everyday readers, occasional books, teams avoiding ops | Developers embedding Python workflows without owning GPUs                                                                       | Teams with existing NVIDIA GPUs, strict offline compliance, or high monthly volume                                                                        |

## 2. Running the Real Numbers: What Does a 200-Page Book Cost?

Based on the published pay-as-you-go rates on the [Pricing & Recharge page](https://pdfcraft.ai/recharge/) (new accounts start with a **$1** bonus, with no monthly subscription and on-demand top-ups—check the recharge page for currently available top-up amounts):

* **Standard PDF conversion** (Markdown or EPUB): **$0.30 per 100 pages**
* **Refined PDF conversion** (with footnote extraction and JEV / LLM refinement): **$1.10 per 100 pages**
* **PDF translation add-on** (added to standard or refined): **+$0.30 per 100 pages**
* **EPUB whole-book translation**: **$0.11 per 10,000 source words** (**$1.10 per 100,000 words**)

Here is what common jobs actually cost in the cloud versus self-hosting effort:

| Typical Task                                                               | Hosted Pay-As-You-Go Cost | Self-Hosted Overhead to Weigh                                                                                        |
| -------------------------------------------------------------------------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **200-page text-heavy scanned book to EPUB** (standard)                    | **$0.60**                 | Installing Python + Poppler + provisioning OCR API credentials or CUDA stack (typically 30 minutes to several hours) |
| **200-page scanned book to translated EPUB or PDF** (standard + translate) | **$1.20**                 | Managing separate OCR and LLM API accounts, plus Ghostscript and fonts for PDF writeback                             |
| **200-page footnote-heavy academic book** (refined + translate)            | **$2.80**                 | Configuring JEV + LLM refinement pipeline, concurrency limits, and retry policies                                    |
| **100,000-word foreign EPUB to translated or bilingual EPUB**              | **$1.10**                 | Setting up an LLM API key, billing limits, and running scripts locally                                               |

If you convert a dozen books a year or process research papers occasionally, spending a couple of dollars on-demand almost always beats maintaining Poppler, CUDA wheels, and multiple vendor keys.

## 3. When Self-Hosting Open-Source `pdf-craft` Clearly Wins

Self-hosting makes strong sense whenever any of the following applies:

1. **Strict offline or air-gapped privacy**: Confidential legal filings, internal reports, or regulated records that cannot leave your network. Using `pip install "pdf-craft[local]"` with `local_only=True`, pre-cached OCR weights, and an internal LLM keeps the entire pipeline inside your perimeter.
2. **You already own idle NVIDIA GPU servers and process thousands of pages monthly**: Once GPU hardware is already paid for, local inference lowers marginal per-page cost at scale.
3. **You want direct programmatic control over `.pcex` or layout**: Consuming live `on_body` / `on_footnote` streaming callbacks, stacking multiple custom translation layers onto one `.pcex` archive, or tuning `PDFPatcher` font families, size limits, and erasure padding (see [Inside `.pcex` and Streaming Extraction](https://pdfcraft.ai/blog/pcex-format-and-streaming-pipeline/)).
4. **You want Python automation without owning a GPU**: Use standard `pip install pdf-craft` with a remote vendor OCR endpoint, or skip local dependencies altogether by calling the hosted REST API (see [Convert PDF to Markdown with Python API](https://pdfcraft.ai/blog/pdf-to-markdown-python/)).

## 4. Three Common Setup Pitfalls Before You Self-Host

If you decide to deploy locally, checking these three items first saves hours of debugging:

1. **Verify Python version and Poppler upfront**: `pdf-craft` requires **Python 3.11 through 3.13**. Both local and vendor OCR require **Poppler** installed on your system (including `libpoppler-glib8` on Linux) with `pdfinfo -v` working in your shell.
2. **Do not install `[local]` on a Mac or CPU-only laptop**: Local OCR requires a CUDA-capable NVIDIA GPU. On macOS or standard laptops, stick to `pip install pdf-craft` with vendor OCR or use the cloud web app.
3. **Translated PDF writeback needs more system tools than Markdown or EPUB**: Beyond Poppler, writeback requires **Ghostscript** and suitable local fonts. Rendering inline equations as vector PDF graphics also requires Matplotlib and system `latex` in `PATH` (otherwise equations fall back cleanly to plain text).

## 5. Bottom-Line Recommendation

* **Personal reading, occasional papers, or no NVIDIA GPU**: Start with [PDF Craft Online](https://pdfcraft.ai/pdf-craft/) using your trial credits on a few hard sample pages first.
* **Automated code workflows without GPU ops**: Use the [Cloud Python API](https://pdfcraft.ai/blog/pdf-to-markdown-python/) or standard `pip install pdf-craft` plus vendor OCR.
* **Existing NVIDIA GPUs plus strict offline privacy or high-volume customization**: Clone `oomol-lab/pdf-craft` and deploy locally.
