Skip to main content

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

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.

New user gift

Skip Local Setup and Test Your First PDF Online

New accounts include $1 in trial credits with pay-as-you-go per-page pricing and no monthly subscription.

Free starter credit

$1

About 330 PDF pages or 90K EPUB words

No card required, credited right after sign-up

Open Web Workspace
Diagram comparing three ways to run PDF Craft: Cloud Web, Python plus Vendor OCR, and Python plus Local GPU
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, 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:

DimensionOption 1: Cloud Web (pdfcraft.ai)Option 2: Open Source + Remote Vendor OCROption 3: Open Source + Local NVIDIA GPU
What you installBrowser only (or call Cloud API / MCP)Python 3.11–3.13, Poppler, pip install pdf-craftAll of Option 2 + pdf-craft[local], NVIDIA drivers, matching CUDA PyTorch, local model weights
Extra dependencies for Translated PDF writebackNoneGhostscript, PySide6/Qt, local fonts (plus Matplotlib & TeX latex for vector inline math)Same as Option 2
Local GPU requirementNoneNoneCUDA-capable NVIDIA GPU with sufficient VRAM (Macs and CPU-only machines cannot run local CUDA mode)
OCR backend flexibilityManaged in cloudConnect 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 flowUploaded to hosted conversion servicePages sent to your chosen third-party OCR / LLM APIOCR stays completely offline on your machine (optional remote LLMs for translation, TOC analysis, or metadata extraction still send text to that service)
Best fitEveryday readers, occasional books, teams avoiding opsDevelopers embedding Python workflows without owning GPUsTeams 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 (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 TaskHosted Pay-As-You-Go CostSelf-Hosted Overhead to Weigh
200-page text-heavy scanned book to EPUB (standard)$0.60Installing 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.20Managing separate OCR and LLM API accounts, plus Ghostscript and fonts for PDF writeback
200-page footnote-heavy academic book (refined + translate)$2.80Configuring JEV + LLM refinement pipeline, concurrency limits, and retry policies
100,000-word foreign EPUB to translated or bilingual EPUB$1.10Setting 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).
  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).

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 using your trial credits on a few hard sample pages first.
  • Automated code workflows without GPU ops: Use the Cloud Python API 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.