pdf-report

Generate professional PDF reports from analytical results with Chinese and English support.

1|1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/chenchunrun/onyx-soc --skill pdf-report-chenchunrun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-report
Source: https://github.com/chenchunrun/onyx-soc/tree/main/skills/pdf-report
Command: npx skills add https://github.com/chenchunrun/onyx-soc --skill pdf-report-chenchunrun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, Pillow, PyPDF2, and includes scripts (resource) components.

What problem does it solve?

该技能基于 reportlab 库实现,提供专业的 PDF 报告生成功能,支持封面页、多级标题、表格、图片、页眉页脚等元素,便于将分析结果和研究内容输出为可分享的文档。

Core Features & Use Cases

  • 自动创建封面页、封面信息、作者、日期等元信息;
  • 支持 1-4 级标题的自动样式与编号;
  • 表格自动排版、图片自动缩放与居中、图片/表格的图注管理;
  • 中文字体支持与背景封面自定义,包含页眉页脚和页码处理;
  • 适用于威胁情报分析、风险评估报告、技术研究文档等场景。

Quick Start

运行示例代码即可生成一份样例 PDF 报告。

Frequently Asked Questions about pdf-report

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PDF reports with embedded fonts and cover pages using Python?

Generate PDF reports using Python by leveraging reportlab for deterministic document assembly, embedding Chinese and English fonts, and creating custom cover page backgrounds with author and date metadata.

Can I use reportlab to create threat analysis reports with tables and images?

Yes, reportlab supports threat analysis report generation by providing automatic table formatting, image scaling and centering, captioned figures, and multi-level numbered headings up to four levels deep.

Does this PDF generation approach support both Chinese and English document outputs?

This PDF generation approach supports both Chinese and English outputs through font embedding, allowing you to produce professional security research and business documents in either language.

What is the best way to automate business document creation with headers, footers, and page numbers?

Automate business document creation by using reportlab to handle deterministic page assembly, which automatically generates cover pages, manages headers and footers, and applies final page numbering.

Do I need Pillow and PyPDF2 to generate PDF reports from analytical results?

You need Pillow and PyPDF2 alongside reportlab to handle image processing and PDF manipulation, ensuring analytical results are formatted with properly scaled images and assembled document structures.

What are the limitations of using reportlab for PDF document generation in Python?

Using reportlab for PDF document generation requires deterministic assembly logic and manual font embedding for Chinese text, meaning complex layouts need explicit coordinate and style definitions rather than dynamic rendering.