# PDF Generator

> Read and generate PDF files. Use this skill when you need to extract text from PDFs or create new PDF documents from text or markdown content.

- Skill: `zhaoxuanzzz/pdf-generator` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add zhaoxuanzzz/pdf-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zhaoxuanzzz/pdf-generator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: zhaoxuanZzz (https://skillmd.com/u/zhaoxuanzzz)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/zhaoxuanzzz/pdf-generator

---


# PDF Generator & Reader

This skill provides tools to read text from PDF files and generate new PDFs from text content.

## Dependencies

- python3
- reportlab
- pdfplumber

## Usage

### Reading PDFs

To extract text from a PDF file:

```bash
python3 scripts/read_pdf.py <path_to_pdf>
```

### Generating PDFs

To generate a PDF from a text file:

```bash
python3 scripts/generate_pdf.py <input_text_file> <output_pdf_file>
```

## Scripts

- `scripts/read_pdf.py`: Extracts text from a PDF file.
- `scripts/generate_pdf.py`: Converts a text file to a PDF file.

