Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pdfparse

БесплатноЗапускает вложенные скриптыНе проверен

High-quality PDF → clean Markdown conversion for text-layer (digital) academic PDFs — journal articles, book chapters, guidelines, reports. Handles single…

ogzhnbyglот ogzhnbygl234 установки в других каталогах

Об этом скилле

PDF Parse — Academic PDF → Clean Markdown

Turns text-layer PDFs into clean, readable, sentence-flowing Markdown — the format you want before summarising, quoting, or synthesising sources. Validated on a 72-paper double-column journal corpus: 72/72 parsed in ~2 minutes with zero failures.

Why this parser instead of simple extraction

  • Correct double-column reading order — the FULL left column is emitted first (top to bottom), then the FULL right column. This mirrors how a human reads a two-column page and keeps paragraphs that start at the bottom of the left column and continue at the top of the right column intact. (An earlier row-by-row merge of left/right by y-coordinate broke exactly this case — it put the right column's continuation before the left column's paragraph start.) Mixed first pages (single-column title/abstract → double-column body) are handled too.
  • Full-width figure regions are respected. When a page has a spanning figure with body text above it, the body text above is read first (left → right), then the figure, then the text below the figure. A figure in the middle of the page never gets pulled out of order. (An earlier pass silently dropped spanning blocks on pages where the figure was at the top — that lost the image entirely.)
  • Split figure captions are rejoined. Springer-style layouts split a Fig. N caption into two blocks at the same vertical band: the left starts with Fig. N ..., the right continues the same sentence. The parser merges them into one caption so the right half doesn't leak into the body text as if it were a new paragraph. The merge only fires when there is real sentence continuity — the left part ends with a connector (,, ;, :-, or a dangling and/of/the/with...) or the right part opens with (. Section headings and body paragraphs that merely sit at the same height (e.g. Proteome Analysis Identifies Pathways... or lack of hemodynamic...) are correctly rejected.
  • Header/footer/page-number removal via position + fingerprinting — checks a block's bottom edge against the footer zone and fingerprints even very short footers (e.g. Springer's 1 3 volume/issue page marks), so they don't leak into the text.
  • Drop-cap and decorative-element filtering.
  • Sentence reconstruction across page breaks — de-hyphenation, mid-sentence cuts.
  • Reference-section pruning (References, Bibliography, and Turkish Kaynakça / Kaynaklar). Pass --keep-references when the bibliography itself is the point (citation extraction, reference tracing); the metadata block then reports REFERENCES: kept instead of REFERENCES: stripped.
  • Optional page markers (--page-markers) — a <!-- page N --> line between pages, so the output can be quoted with a page number ("p. 12") and parse order can be debugged page by page. Off by default. A marker is omitted at a boundary that was healed across pages, because inserting it there would split the rejoined word.
  • Paragraph reconstruction from PDF line-breaks.
  • Optional figure extraction as PNGs with markdown image markers.
  • Fast: plain PyMuPDF (fitz), no LLM calls. (pymupdf4llm once hung for minutes on a 73-page FELASA document; this parser finished it in seconds.)

Requirements: Python 3.10+ and PyMuPDF. Always invoke the scripts through scripts/run.sh — it picks an interpreter that is new enough and actually has PyMuPDF, skipping ones that don't. Plain python3 is often the system interpreter, which usually lacks PyMuPDF. Override the choice with PYTHON=/path/to/python3.

Single PDF

"<skill_dir>/scripts/run.sh" "<skill_dir>/scripts/pdf_to_clean_md.py" <input.pdf> <output_dir> [--no-figures] [--slug SLUG] [--figure-dpi 200] [--keep-embedded] [--keep-references] [--page-markers] [--json] [--quiet]
  • Writes <output_dir>/fulltext.md; with figures also <output_dir>/figures/<slug>_fig_N.png.
  • Prints machine-readable metadata to stdout: TITLE:, AUTHOR:, PAGES:, FIGURES:, OUTPUT_DIR:, REFERENCES: — use it to confirm what was parsed.
  • --no-figures skips figure extraction (recommended for pure text corpora — the 72-PDF chapter run used it).
  • --keep-embedded also extracts uncaptioned embedded images (journal logos/badges). Off by default so figure numbers stay aligned with the paper.
  • --quiet suppresses the per-file metadata block (FULLTEXT/TITLE/…/figure crosscheck) — useful when driving the parser programmatically.
  • Every output's first line is a version stamp <!-- pdfparse vX.Y.Z -->. A .md that lacks this line (or shows an older version) was produced by a different parser version — worth re-parsing.
  • Slug defaults to the paper's real title (slugified, e.g. age-associated-resilience-against-ischemic-injury), NOT the PDF filename — resolved from PDF metadata title, falling back to the largest-font text block on page 1 (a title is alm
Полный SKILL.md на ClawHub

Установить pdfparse в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл pdfparse?

High-quality PDF → clean Markdown conversion for text-layer (digital) academic PDFs — journal articles, book chapters, guidelines, reports. Handles single files AND large batches. Use this skill whenever the user wants PDFs turned into markdown/fulltext for reading, quoting, summarising or analysis: "şu PDF'leri markdown'a çevir / parse et", "PDF'den metin çıkar / fulltext çıkar", "makaleleri md yap", "bu 70 PDF'i işle", "PDF to markdown", "convert this PDF", "extract full text from these papers", "parse these PDFs into readable text files". Also reach for it when a batch of downloaded reference PDFs (e.g. from pdf-downloader) needs to become readable, searchable text for a literature review or book chapter. Handles double-column journal layouts with correct reading order (full left column then right, full-width figures respected), rejoins Springer-style split figure captions, names outputs by paper title (`--keep-names` keeps PDF filenames instead, for numbered reference collections), and extracts figures numbered to match the paper's own Figure N. It is the parser of choice for text-layer PDFs; do NOT route scanned/image-only PDFs here — that is image-ocr's job — and do not confuse it with pdf-downloader (fetching PDFs), paper-vault (carding papers) or opencite (search/metadata): those skills fetch or file papers, pdfparse converts local PDF files into clean markdown.

Как установить скилл pdfparse?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pdfparse запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить pdfparse с