AGENT SKILL
Extract text and tables from PDFs, merge, split or rotate pages, render pages to images, and create PDFs.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 154
- Forks
- 17
01 前言 Front Matter
- name
- description
- Extract text and tables from PDFs, merge, split or rotate pages, render pages to images, and create PDFs.
03 SKILL.md 正文
Read
- Text with layout:
pdfplumber.open(path), thenpage.extract_text()per page. - Tables:
page.extract_tables(); check the result, because merged cells and headers often need cleanup in pandas. - Command line:
pdftotext -layout input.pdf -prints text quickly. - Scanned pages have no text layer. On the full image, render them (
pdftoppm -r 200 -png in.pdf /mnt/data/tmp/page) and runpytesseract.image_to_stringon each image.
Change
- Merge, split, reorder or rotate with pypdf:
PdfReader,PdfWriter,writer.add_page(page),page.rotate(90). - Keep the original: write a new file to
/mnt/data/outputs/.
Render
pdftoppm -r 150 -png -f 1 -l 1 input.pdf /mnt/data/outputs/page renders page 1 to page-1.png. Rendering is the best way to check what a page looks like.
Create
- Reports with styles, tables and images: reportlab's
SimpleDocTemplatewithParagraph,TableandImageflowables. - From a Word or Markdown file on the full image:
soffice --headless --convert-to pdf --outdir /mnt/data/outputs input.docx.
04 同仓库更多 Skills
word-documents
Create, convert and edit Word (.docx) documents with python-docx, and pandoc on the full image.
★ 154
spreadsheets
Analyze CSV and Excel files with pandas, and write formatted .xlsx workbooks.
★ 154
presentations
Create and edit PowerPoint (.pptx) decks with python-pptx.
★ 154
images
暂无简介
★ 154
charts
Make clear charts with matplotlib; plt.show() returns them as images.
★ 154
overtchat-test-skill
Overtchat RPC integration skill
★ 154