Skip to main content

LlamaIndex Readers Integration: Pdf-Marker

Uses the pdf-marker library to extract the content of a PDF file.

From the original README:

Marker converts PDF to markdown quickly and accurately.

  • Supports a wide range of documents (optimized for books and scientific papers)
  • Supports all languages
  • Removes headers/footers/other artifacts
  • Formats tables and code blocks
  • Extracts and saves images along with the markdown
  • Converts most equations to latex
  • Works on GPU, CPU, or MPS

Usage

Here's an example usage of the PDFMarkerReader.

from llama_index.readers.pdf_marker import PDFMarkerReader
from pathlib import Path

path = Path("/path/to/pdf")
reader = PDFMarkerReader()
documents = reader.load_data(path)

# Convert a slice of the document: start_page is 0-based.
documents = reader.load_data(path, start_page=2, max_pages=5)

This reader uses marker-pdf 2.x (PdfConverter). Models are loaded on the first load_data call and reused for later calls on the same reader instance.

The langs and batch_multiplier arguments are still accepted for backwards compatibility but are ignored: marker-pdf 2.x detects languages and sizes its batches automatically. Passing them emits a DeprecationWarning.

License

The marker-pdf library is licensed under the GPL-3.0 license (see https://github.com/VikParuchuri/marker), meaning that you may copy, distribute and modify the software as long as you track changes/dates in source files. Any modifications to or software including (via compiler) GPL-licensed code must also be made available under the GPL along with build & install instructions.

There is also commercial usage limitations (see https://github.com/VikParuchuri/marker?tab=readme-ov-file#commercial-usage).

Metadata

Release files for llama-index-readers-pdf-marker 0.8.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 llama-index-readers-pdf-marker 0.8.0
File Size Uploaded Provenance Actions
llama_index_readers_pdf_marker-0.8.0.tar.gz 16.9 kB Without provenance Details for llama_index_readers_pdf_marker-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-pdf-marker 0.8.0
File Interpreter ABI Platform Actions
llama_index_readers_pdf_marker-0.8.0-py3-none-any.whl Python 3 none any Details for llama_index_readers_pdf_marker-0.8.0-py3-none-any.whl

Total release size: 33.1 kB

Release files / llama_index_readers_pdf_marker-0.8.0.tar.gz

Download URL llama_index_readers_pdf_marker-0.8.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c5483b065986dc6c58ae9835d03cb468d3d9019508c755354ed361f1e24932b3
BLAKE2b-256 checksum
How to use checksums
4e38385044343c964921d1ed2f6ecd56e9af5f79f6a571251305cfb4aae450a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_readers_pdf_marker-0.8.0-py3-none-any.whl

Download URL llama_index_readers_pdf_marker-0.8.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01bb68edbc24c4df583a535feec3e6caa9ebb3fe0797d5615f6678e5a0e3e409
BLAKE2b-256 checksum
How to use checksums
532dcc80b5504f773bd57a995f6571a05c4a439f4174ab2551348b1357afec7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-readers-pdf-marker 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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