text-extract-api vs gptpdf

Document extraction projects compared

text-extract-api processes PDFs, images, and Office documents into Markdown or JSON, while gptpdf converts PDFs into Markdown using a vision-capable model. The main difference is that text-extract-api offers a self-hostable API and multiple OCR workflows, whereas gptpdf is a PDF parsing library that relies on a compatible model API.

text-extract-apigptpdf
LanguagePythonPython
LicenseMITMIT
Stars3.2k3.6k
Forks279261
Last analyzedOct 3, 2026Oct 3, 2026

Key differences

  • text-extract-api handles PDFs, images, and Office documents; gptpdf focuses on PDFs.
  • text-extract-api can produce Markdown or structured JSON; gptpdf converts PDFs into Markdown and returns paths to extracted images.
  • text-extract-api offers OCR strategies and optional Ollama processing; gptpdf sends page content to a multimodal model through an OpenAI-compatible API.
  • text-extract-api is designed to run in an organization's environment, while gptpdf requires access to a compatible model API and may incur per-page costs.
  • text-extract-api includes asynchronous processing, OCR-result caching, and configurable storage profiles; gptpdf offers configurable worker threads for model parsing.
  • Both projects are written in Python and use the MIT license.

Choose text-extract-api if you…

  • need to process images or Office documents as well as PDFs.
  • want a self-hostable service with OCR options, optional Ollama processing, and Markdown or JSON output.
  • need asynchronous tasks, caching, or configurable result storage for document workflows.
Read the text-extract-api analysis →

Choose gptpdf if you…

  • need a PDF parsing library that converts pages to Markdown and returns paths to extracted images.
  • want model-based interpretation of visually complex PDF content through an OpenAI-compatible API.
  • can configure access to a compatible multimodal model and accept potential per-page costs.
Read the gptpdf analysis →

Compare the numbers side by side, or add more projects

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.