Extract PDF selectable text and full-page or segmented page images (including tables) into Markdown with per-page headings and image links; use when you need both readable text and page visuals for PPT creation, review, or analysis.
64
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Other/pdf-extract/SKILL.mdRun this minimal command first to verify the supported execution path:
python scripts/extract_pdf.py --help## Page XX) for easy navigation.# <filename>, ## Page XX).--filter-text).--filter-match).--filter-pdf-text).pdfplumber (version not specified)pymupdf (version not specified)pytesseract (version not specified; required only when --filter-text on or --filter-match on)python scripts/extract_pdf.py \
--input input.pdf \
--output output.md \
--image-dir images \
--image-mode segment \
--filter-text on \
--text-threshold 0.25 \
--text-lang eng \
--filter-match on \
--match-lang eng \
--match-min-len 30 \
--filter-pdf-text on \
--pdf-text-threshold 0.1Expected Markdown structure:
# <filename>## Page XX with --image-mode segment with --image-mode embedded with --image-mode pageText extraction and normalization
Image extraction modes
segment (default): renders page segments/blocks to capture localized content (tables/figures) rather than entire pages.embedded: extracts images embedded in the PDF content stream.page: renders each full page as a single image (not recommended if you need cropped screenshots/blocks).Filtering options
--filter-text on: runs OCR on extracted images and removes images whose OCR text density exceeds --text-threshold (e.g., 0.25).--filter-match on: removes images whose OCR text substantially matches the page's extracted text; controlled by --match-min-len and language via --match-lang.--filter-pdf-text on: removes images that overlap PDF text blocks using PDF layout information (no OCR); controlled by --pdf-text-threshold (e.g., 0.1).Output writing
## Page XX sections and image links pointing to files saved under --image-dir.pdf_extract_result.md unless the skill documentation defines a better convention.Run this minimal verification path before full execution when possible:
python scripts/extract_pdf.py --helpExpected output format:
Result file: pdf_extract_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any63c61d3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.