pdf-documents

Solid

Generate PDFs with fpdf2 and merge, split, or fill existing PDFs with pypdf, with visual QA before delivery.

AI & Automation 29 stars 6 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
49
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PDF documents Produce PDF deliverables with two libraries: **fpdf2** to generate new documents and **pypdf** to manipulate existing ones (merge, split, rotate, fill forms). Follow every section below before declaring a PDF done. ## Installing the libraries Install each pinned dependency with its own `exec` call — commands have a bounded wall clock, and one `pip` invocation per package stays inside it: ``` python3 -m pip install --user fpdf2==2.8.3 python3 -m pip install --user pypdf==6.16.1 ``` Installs work only when this chat's network policy allows package managers, and they persist for the rest of the conversation. If an install is refused by policy, do not retry: tell the user to enable the package-manager network policy for this chat, and offer the closest format you can produce without the library (for example markdown or HTML) — only with their knowledge, never as a silent substitution. If a dependency cannot be installed at all, say so plainly instead of quietly delivering a lesser format. ## Generating PDFs with fpdf2 - Build documents from `fpdf.FPDF`: `add_page()`, `set_font(...)`, then `cell(...)` / `multi_cell(...)` for text and `image(...)` for figures. - The core fonts (Helvetica, Times, Courier) cover ASCII reliably. For text beyond Latin-1, register a Unicode TrueType font with `add_font(...)` before use; never let glyphs silently render as placeholders. - Set metadata that helps the user: `set_title(...)`, `set_author(...)` when the documen...

Details

Author
brightwave-inc
Repository
brightwave-inc/tidebreak
Created
2 months ago
Last Updated
today
Language
Rust
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category