Skip to main content

pdfmuse-haystack

Haystack converter for pdfmuse — a deterministic PDF/DOCX parser for RAG. Same file in → same Document out.

pip install pdfmuse-haystack

Usage

from pdfmuse_haystack import PdfmuseConverter

converter = PdfmuseConverter(mode="markdown")   # or "text" (default)
docs = converter.run(sources=["report.pdf"])["documents"]

In a pipeline:

from haystack import Pipeline
from pdfmuse_haystack import PdfmuseConverter

pipe = Pipeline()
pipe.add_component("converter", PdfmuseConverter(mode="text"))
# ... connect to a splitter / embedder / writer ...

Modes

  • "text" (default) — plain reading-order text (fast path).
  • "markdown" — structured Markdown (headings + tables).

Extracts text with exact coordinates, tables and structure; no probabilistic models in the core path, so your index is reproducible run-to-run. Scanned/image-only pages surface a NeedsOcr warning (OCR is a pluggable backend, kept out of the core).

MIT OR Apache-2.0 · part of the pdfmuse project.

Metadata

Release files for pdfmuse-haystack 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdfmuse-haystack 0.1.0
File Size Uploaded
pdfmuse_haystack-0.1.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdfmuse-haystack 0.1.0
File Interpreter ABI Platform
pdfmuse_haystack-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / pdfmuse_haystack-0.1.0.tar.gz

Download URL pdfmuse_haystack-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d9d1507fc9515114041110d73bd7daaf9774dd0af1f3c93c0253ac5031eba960
BLAKE2b-256 checksum
How to use checksums
5c1aa26e84692a9c11aeca29d53230f99dc3b85088045151a3d354b963b6fcd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pdfmuse_haystack-0.1.0-py3-none-any.whl

Download URL pdfmuse_haystack-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
366c1e48563760203bd6a5a9bf8487210ca4ed60bba7f62b3cd4d5639d6dcacd
BLAKE2b-256 checksum
How to use checksums
c282df6051a7bcc1ea3a220ab93c3f2b681328e4a9367fb8c8b34b8aa1897cd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page