Scan your whole stack
Latest version: v1.0.0
pdfsift was last scanned on 3 Dec 2026 at version 1.0.0. Risk score 50 of 100 (medium). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 1.0.0 LATEST | 3 Dec 2026 | 1 rule fired |
Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The code polls a remote server in a background loop or thread and runs the command or code it receives: a value taken from a network response reaches a shell, a process launch or an eval. A program that does this gives whoever controls the server remote control of the machine. Normal tools run a fixed command, or pass server data to a fixed program as an argument. Confirmed on a package that registered each install with a hidden server and then ran whatever commands came back.
HIGHThe score describes 1.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
PDF → structured Markdown, built for LLM agents. Headings, paragraphs, lists and tables in reading order, with running headers, footers and line-end hyphens removed. Plain heuristics over what the PDF already contains: no AI model, no OCR, no network.
Status: stable (1.0.0). The output format is frozen (docs/usage.md); it changes only in a major version. Text, headings, lists, tables, images, emphasis, links, footnotes and block quotes work well on the test corpus;
info,toc,--jsonand an MCP server make it easy for agents to read only what they need (see Limitations and the changelog).
$ pdfsift chrome.pdf # two-column test document (in Portuguese)
<!-- pdfsift: source=chrome.pdf pages=1-3/3 -->
<!-- page: 1 -->
# Colunas Estreitas, Hifenização e Ligaduras
Projeto pdfsift
Resumo
Este documento é composto em duas colunas estreitas para forçar a hifenização no fim das linhas, …
# Introdução
A extração de texto de um arquivo PDF parece simples até o primeiro documento em duas colunas. …
Every channel ships the PDFium library (the PDF engine of Chrome) next to the executable; nothing is downloaded at run time.
| Channel | Command |
|---|---|
| npm (no install) | npx @vitorsilverio/pdfsift file.pdf |
| npm (global) | npm install -g @vitorsilverio/pdfsift, then pdfsift file.pdf |
| PyPI (no install) | uvx pdfsift file.pdf or pipx run pdfsift file.pdf |
| PyPI (global) | uv tool install pdfsift or pipx install pdfsift |
| Homebrew | brew install vitorsilverio/tap/pdfsift |
| Shell (Linux, macOS) | curl -LsSf https://github.com/vitorsilverio/pdfsift/releases/latest/download/install.sh \| sh |
| PowerShell (Windows) | irm https://github.com/vitorsilverio/pdfsift/releases/latest/download/install.ps1 \| iex |
| Archives | .tar.xz/.zip with SHA-256 and build attestations on GitHub Releases |
| Cargo | cargo install pdfsift, then get PDFium (below) |
Prebuilt for Linux (x86_64, aarch64; glibc 2.34+ for the archives, 2.17+ for the PyPI wheels), macOS (x86_64, arm64) and Windows (x86_64, arm64). No musl/Alpine build yet. On npm the package is scoped (@vitorsilverio/pdfsift, because the registry rejects the unscoped name as too close to pdfkit); the installed command is still pdfsift.
PDFium with cargo install: crates.io carries only the source, so download pdfium-<platform>.tgz from bblanchon/pdfium-binaries chromium/8179 and put the library (libpdfium.so, libpdfium.dylib or pdfium.dll) next to the pdfsift executable, or point PDFSIFT_PDFIUM at it. If it is missing, pdfsift says where it looked.
pdfsift info file.pdf # run first: pages, scanned pages, size in tokens, what to run next
pdfsift toc file.pdf # sections with page ranges, e.g. "- 3 Methods (pp. 4-7)"
pdfsift file.pdf --pages 4-7 # only those pages (PDF page order, from 1)
pdfsift file.pdf # Markdown on stdout
pdfsift file.pdf -o file.md # to a file
pdfsift file.pdf --pages 10-12 # a slice ("3", "2-4", "1,5-7"), to fit a context window
pdfsift file.pdf --no-page-markers
pdfsift file.pdf --assets figs/ # where images go
pdfsift file.pdf --no-images # text only, images as [image: caption]
pdfsift file.pdf --json # the same content as JSON items, each with its page (schema: docs/schema/pdfsift.schema.json)
pdfsift mcp # MCP server on stdio (pdf_info, pdf_toc, pdf_to_markdown)
: on stdout they go to <tmp>/pdfsift/<name>-<hash>/ with absolute paths (the header comment names the directory), with -o out.md to out_assets/ with relative paths. Open the path to look at an image.<!-- page: N --> marks where each page starts, so an agent can cite pages. A header comment names the source file and the pages converted.-q silences them.--password), 4 no text in the selection (scans only: the Markdown and page images are still written; run OCR). Errors say what to do next.claude mcp add pdfsift -- npx -y @vitorsilverio/pdfsift mcp (Claude Code), or {"command": "npx", "args": ["-y", "@vitorsilverio/pdfsift", "mcp"]} in other clients (more). Tools: pdf_info, pdf_toc, pdf_to_markdown {path, pages?, images?, password?}.integrations/.pdfsift --help is short and written so an agent can use the tool from it alone.interopera- / bility → interoperability), while real hyphens stay.**bold**, *italic*, `code` on the exact span, and [text](url) from the PDF's link annotations (a URL broken across lines comes out whole). Emphasis that covers a whole heading or paragraph is dropped as noise.[^1] at the call and [^1]: text at the end of the same page; endnotes keep their place.> with nesting, from indentation or tags.--password. A file whose permissions forbid copying text is still converted, with a warning./Rotate, offset page boxes and pages drawn sideways are read upright; text outside the CropBox is dropped, and turned text in the margins (the arXiv side stamp) is treated as page furniture./) when tags or the header geometry make the grid certain; otherwise a fenced code block with the text laid out by position, so nothing is invented. Captions come right before their table. On the test corpus (five producers): every cell right in the simple tables, including those split across a page break (joined, header once), and no prose mistaken for a table.pdftotextThe two-column test document above (15 paragraphs), typeset from the same source by Chrome, LibreOffice, LaTeX and Typst; pdftotext is Xpdf 4.00. "Whole paragraphs" counts source paragraphs that come out as one intact paragraph; "split words" counts line-end hyphens left in the text.
| Producer | pdftotext |
pdftotext -layout |
pdfsift |
|---|---|---|---|
| Chrome | 9/15 whole, 2 split words | 0/15, 2 | 15/15, 0 |
| LibreOffice | 6/15, 3 | 0/15, 56 | 15/15, 0 |
| LaTeX | 0/15, 29 | 0/15, 35 | 13/15, 0 |
| Typst | 0/15, 1 (+ soft hyphens left as spaces) | 0/15, 23 | 15/15, 0 |
Beyond the counts:
pdftotext interleaves the two columns line by line; -layout puts them side by side on the same line. pdfsift reads column 1, then column 2.pdftotext keeps Chrome's header and footer (date, title, file:///…, 1/3) on every page; pdfsift removes them.pdftotext has no headings (they are plain lines) and drops Chrome's list markers, gluing items together. pdfsift emits #/##/### at the right level and nested lists.pdftotext (53.1k with -layout). Markdown syntax costs about what removing the furniture saves.pdftotext flattens them into lines; -layout keeps the alignment but, in two of the test tables (LibreOffice, and a Word-made arXiv paper), shifts values into the wrong row. pdfsift gets both right as GFM tables.On 14 structure-dependent questions over 18 PDFs (44 question × PDF pairs; evals/), the expected answer appears intact and in order in 100% of pdfsift outputs (44/44), against 22% for pdftotext and 43% for pdftotext -layout, at about the same size as plain pdftotext (+4%) and 23% smaller than -layout. The questions were written by the authors on a corpus the heuristics were tuned on, so read this as an upper bound.
On real third-party PDFs (8 documents, 165 pages, none used to tune the heuristics before they were added: IRS forms and instructions, a 62-page Census report, Word articles in Portuguese, a Google Docs article, Google Slides and PowerPoint decks; evals/third_party.py):
| pdfsift | pdftotext |
pdftotext -layout |
|
|---|---|---|---|
| Whole paragraphs | 33/36 | 21/36 | 19/36 |
| Headings found | 52/55 (4 false) | 42/55 | 35/55 |
| Table rows with every cell in the right row | 18/22 | 8/22 | 15/22 |
| Running headers/footers left | 74 | 139 | 139 |
| Size (characters) | 845k | 516k | 762k |
pdfsift is larger overall because of one document: the Census report's dot leaders and wide tables make it 2.2× pdftotext. Without it, pdfsift's output is 2% smaller than pdftotext's. Known failures are listed in finding 041.
Speed: about 30 ms per page (release build, the whole corpus), about 3× pdftotext, which does no layout analysis (finding 045, evals/bench.py). The same PDF gives byte-identical output on Linux, macOS and Windows, checked in CI.
Methodology and per-document results (in Portuguese): text, tables, evaluation, third-party corpus.
. . . .) in tables of contents and wide tables are kept, which inflates some reports.-o path.PDFSIFT_STALL_SECS changes the limit, 0 turns it off).gh attestation verify <file> --repo vitorsilverio/pdfsift).scripts/fetch-pdfium.sh # downloads PDFium into .pdfium/ (needs gh)
cargo run -- file.pdf # convert
cargo run -- dump file.pdf # inspect what the PDF engine sees
cargo run -- blocks file.pdf # inspect the layout blocks
scripts/gen-corpus.sh # regenerate test PDFs (pandoc, lualatex, typst, LibreOffice, Chrome)
The full usage and output reference is docs/usage.md. PDFium is loaded at run time from PDFSIFT_PDFIUM, next to the executable (or in pdfium/ beside it), from .pdfium/<platform>/ (debug builds only), or from the system library path (not on Windows). The design docs are in docs/ (Portuguese): vision, architecture, distribution, roadmap, decisions.
Licensed under either of Apache License 2.0 or MIT license, at your option. The binaries also contain PDFium and its dependencies under their own permissive licenses; see THIRD_PARTY_LICENSES.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.