Skill by AstrBotDevs
Lets AstrBot assistants read, create, inspect, merge, split, rotate, encrypt, fill and validate PDF files. Built on pypdf and ReportLab, it suits users who work with PDFs or need Markdown converted into a PDF.
Install pdf
Built from the published package, never by AI.
git clone --depth 1 https://github.com/AstrBotDevs/AstrBot /tmp/AstrBot && mkdir -p ~/.claude/skills && cp -r /tmp/AstrBot/astrbot/builtin_stars/astrbot/skills/pdf ~/.claude/skills/pdfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/AstrBotDevs/AstrBot /tmp/AstrBot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AstrBot/astrbot/builtin_stars/astrbot/skills/pdf ~/.gemini/antigravity-cli/skills/pdfAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This AstrBot skill lets an assistant read, create, inspect, merge, split, rotate, encrypt, fill and validate PDF files. It uses pypdf for PDF structure operations and validation, and ReportLab for new page layout. The skill tells the assistant to preserve source files unless an in-place change is requested, and to reopen every output to check its page count, expected text and encryption state.
A bundled script converts a limited Markdown subset into PDF. The supported subset covers headings, paragraphs, flat lists, block quotes, fenced code blocks, horizontal rules, and bold, italic, inline code and HTTP(S) or mail links. Font selection can use an explicit font file, a readable system Chinese font, or ReportLab's built-in Simplified Chinese fallback. It is intended for AstrBot users who need to work with PDF files or turn supported Markdown into a polished PDF.
Written from the project's SKILL.md and checked against it.
What it can do
- Read and inspectReads page count, metadata, encryption, page sizes, text, annotations and form fields with pypdf.
- Create from MarkdownConverts supported Markdown into a PDF with a bundled deterministic converter.
- MergeCombines several PDF files into one in the requested order.
- SplitExtracts selected pages into a new PDF without modifying the source.
- RotateRotates pages by a multiple of 90 degrees.
- EncryptPassword-protects a PDF when the user asks, and reopens it to confirm.
- Fill formsFills AcroForm fields while preserving interactivity unless a flattened result is requested.
- Validate outputReopens outputs to check page count, expected text or fields, and encryption state.
What you need
- Python with pypdf and ReportLab
- pdftoppm, for rendering pages to images (optional)
- A readable Chinese font file, if a specific font is required (optional)
Try asking
- Merge these three PDFs in order into one file called report.pdf
- Convert my notes.md into a polished PDF using the bundled converter
- Rotate pages 2 and 3 of scan.pdf by 90 degrees and keep the original
Good to know
- The Markdown converter does not support raw HTML, images, tables, nested lists or footnotes.
- Visual checks need pdftoppm. Without a renderer, only structural validation is done.
- Font downloads need user approval and are kept in the workspace, not installed system-wide.
- Password-protected files must be opened with the password before reporting success.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: astrbot/builtin_stars/astrbot/skills/pdf/SKILL.md, astrbot/builtin_stars/astrbot/skills/pdf/scripts/markdown_to_pdf.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/forms.md2 KB -
scripts/markdown_to_pdf.py21 KB
Alternatives to pdf
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
pdf: common questions
Can this skill convert Markdown with tables or images to PDF?
No. The source says the converter does not interpret tables, images, raw HTML, nested lists, footnotes or arbitrary Markdown extensions. Unsupported content should be simplified or explained.
Does the skill modify my original PDF files?
It preserves source files unless the user explicitly asks for an in-place change. Outputs are written to separate files.
How does it handle Chinese text in generated PDFs?
It uses an explicit font if provided, otherwise a suitable system Chinese font, otherwise ReportLab's built-in Simplified Chinese fallback. It stops rather than emitting missing glyphs.
How do I install pdf?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pdf free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is pdf safe to use?
It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pdf?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
