Ai to a4 pdf skill
Use when generating an A4 PDF, converting AI content into a printable report, designing HTML/CSS documents, comparing quotations, writing tender evaluation reports, making travel booklets, turning presentations into A4 handouts, standardising resumes, improving pagination, or avoiding manual Word-to-PDF formatting.From its SKILL.md
npx -y skills add remyoo7/ai-to-a4-pdf-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, 503 tokens by cl100k_base, as published. Nobody here has run it
AI to A4 PDF
Turn supplied content and files into professional print-ready A4 PDFs using local HTML, CSS, Jinja2, and WeasyPrint.
Core Workflow
- Inspect all supplied files and content before drafting.
- Identify the document type, audience, required sections, and missing facts.
- Preserve factual accuracy; do not invent missing commercial, legal, financial, safety, or personal details.
- Choose the closest template from
templates/. - Structure content into semantic document data.
- Render editable HTML with local CSS only.
- Validate A4 page size, margins, headings, tables, images, long text, and page breaks.
- Render the PDF with WeasyPrint.
- Inspect the output for overflow, blank pages, clipped text, broken tables, and poor page breaks.
- Regenerate until the HTML and PDF pass validation.
- Return both the editable HTML path and final PDF path.
- Clearly report missing, unreadable, uncertain, or excluded source information.
Load References When Needed
- Use
references/document-design-guide.mdfor layout, hierarchy, template selection, and report components. - Use
references/print-css-guide.mdfor WeasyPrint paged-media CSS, tables, page numbers, headers, and page-break rules. - Use
references/supported-inputs.mdfor JSON, YAML, Markdown, text, images, and presentation handout inputs. - Use
references/troubleshooting.mdwhen rendering fails or the PDF has overflow, clipped text, blank pages, or bad pagination. - Use
references/security-and-privacy.mdfor confidential documents, local processing, path safety, temporary files, and untrusted HTML.
Commands
python scripts/generate_pdf.py --input examples/professional-report/input.json --template professional-report --output output/report.pdf
ai-to-a4-pdf build examples/quotation-comparison/input.json --template quotation-comparison --output output/quotation.pdf
Guardrails
- Operate locally by default; never upload source files without explicit user approval.
- Do not use remote CDNs, Google Fonts, JavaScript, or live internet resources during PDF rendering.
- Escape untrusted content by default.
- Do not log secrets, tokens, passwords, or private source content.
- Do not treat commercial tender evaluation as technical, legal, safety, or background due diligence unless source evidence supports it.
What ships with it: 53 files
50.2 KB alongside SKILL.md, 15 of them executable
assets/
- banner.svg832 B
- sample-preview.png1.9 KB
- sample-preview.svg726 B
- workflow.svg887 B
docs/
examples/
references/
- document-design-guide.md1.4 KB
- print-css-guide.md948 B
- security-and-privacy.md999 B
- supported-inputs.md954 B
- troubleshooting.md798 B
scripts/
- check_environment.pyruns537 B
- create_sample_outputs.pyruns829 B
- generate_pdf.pyruns824 B
- validate_html.pyruns693 B
- validate_skill.pyruns974 B
src/
- ai_to_a4_pdf/cli.pyruns1.4 KB
- ai_to_a4_pdf/document.pyruns2.8 KB
- ai_to_a4_pdf/__init__.pyruns51 B
- ai_to_a4_pdf/render.pyruns2.0 KB
- ai_to_a4_pdf/security.pyruns717 B
- ai_to_a4_pdf/validation.pyruns1.0 KB
templates/
- CHANGELOG.md187 B
- CITATION.cff214 B
- CODE_OF_CONDUCT.md287 B
- CONTRIBUTING.md350 B
- .editorconfig139 B
- .gitignore123 B
- LICENSE1.1 KB
- .pre-commit-config.yaml138 B
- pyproject.toml1.0 KB
- README.md3.3 KB
- requirements.txt60 B
- SECURITY.md356 B
13 more files not listed here. See all 53 in the repository.