
from openspace6,755
Iterative workflow to verify PDF page counts and automatically adjust layout parameters (images, fonts, margins, tables) until page requirements are met.
This skill provides a reproducible, iterative process to ensure generated PDFs meet strict page-count requirements. It combines page-count verification (via PyMuPDF or PyPDF2) with parametric layout adjustments—image scaling, margins, font sizes, and table density—automatically retrying generation until the document fits the target constraints or a max iteration limit is reached.
Use when producing reports, maps, or summaries with strict page limits (e.g., single-page maps, fixed-length reports) where automatic layout variability can exceed targets. Also useful in batch generation pipelines where manual tuning per-document is impractical.
Works best with Python-capable assistants and CI/batch automation tools that can run PyMuPDF/PyPDF2 and PDF generators (ReportLab, matplotlib).
A PDF page count verification skill providing an iterative workflow template for adjusting layout parameters until page requirements are met. Contains well-structured Python code examples with functions, docstrings, and error handling, but no bundled scripts — it's purely instructional. The skill has a monolithic SKILL.md with no scripts/ or references/ directories, and no output contracts. Niche usefulness: solves a specific PDF layout problem but requires users to integrate their own PDF generation logic.
Clean skill with no security concerns. Purely instructional — no scripts to execute. Architecture is flat (everything in one SKILL.md) with no separation of concerns. Useful as a pattern/reference but limited practical out-of-the-box value.
Document Generation — Dual Backend
Generate DOCX/PDF/HTML from Markdown using Pandoc by default; fallback to ReportLab for heavy Unicode or programmatic layouts. Includes sanitization and backend
Unified Multi-Deliverable Workflow
Structured pattern for generating coordinated spreadsheets, diagrams, and PDF reports with iteration budgeting and error recovery.
Robust PDF Text Extraction
Reliably extracts text from PDF documents using pdftotext when standard file reading tools fail or return binary data.