Premium Enterprise PDF Generator
Generate high-quality, enterprise-grade PDF documents from markdown input. This skill applies a de-AI humanization pipeline to make LLM-generated text sound more natural, then renders it into a premium PDF with a professional Navy + Gold design system (marketing agency quality).
When to Use This Skill
Invoke this skill when the user:
- - Asks to create a PDF from markdown or text content
- Wants to generate a professional report, proposal, or document
- Needs to export content as a visually polished enterprise document
- Says phrases like: "create a PDF", "generate a report PDF", "export as enterprise PDF", "make a premium PDF"
How to Invoke
Basic usage (markdown string)
CODEBLOCK0
From a markdown file
CODEBLOCK1
With a company logo in the header
CODEBLOCK2
Parameters
| Parameter | Required | Description |
|---|
| INLINECODE0 or INLINECODE1 | Yes | Markdown text (string) or path to a .md file |
| INLINECODE3 or INLINECODE4 |
Yes | Output PDF file path (e.g.,
report.pdf) |
|
--title or
-t | No | Document title shown in the header (default: "Enterprise Report") |
|
--logo | No | Path to a PNG or JPG logo image to display in the header |
What the Skill Does
1. De-AI Text Humanization
Before rendering, the skill automatically applies text transformations:
- - Em dashes (
—) → replaced with , (natural comma-based flow) - En dashes (
–) → replaced with INLINECODE12 - Formal AI phrases removed: "It is important to note", "Furthermore", "Moreover", "Additionally", "In conclusion", "In order to"
- AI buzzwords replaced: "utilize" → "use", "leverage" → "use", "delve into" → "explore", "comprehensive" → "complete", "robust" → "solid", "seamlessly" → "smoothly"
- Unnecessary qualifiers stripped: "basically", "literally", "actually", "quite"
- Double spaces normalized
2. Premium PDF Design (Navy + Gold)
The generated PDF features:
- - Color palette: 60% white/light gray, 30% deep navy (#1A2B4A), 10% gold (#C9A84C)
- Typography hierarchy: H1 28pt → H2 20pt → H3 16pt → H4 13pt → Body 11pt
- Professional header: Navy background with white title + date (optional logo support)
- Gold accent lines: Under H2 headings and above the footer
- Page numbers: Centered footer with page count
- Justified body text for professional document appearance
3. Markdown Elements Supported
- - Headings:
#, ##, ###, INLINECODE16 - Bold and italic and bold-italic text
- Inline
code and fenced code blocks - Unordered lists (
-, *, +) and ordered lists (1., 2.) - Nested list items
- Blockquotes (
>) - Horizontal rules (
---) - Hyperlinks (rendered as bold text)
Setup (First Time)
Install Python dependencies:
CODEBLOCK3
Or install directly:
CODEBLOCK4
Example Interaction
User: "Create a PDF from this markdown report and save it as quarterly-report.pdf"
Agent action:
CODEBLOCK5
Output: INLINECODE25
After running, inform the user of the output path so they can open the file.
Error Handling
If the script returns an error:
- 1. Check that
reportlab is installed: INLINECODE27 - Verify the input markdown is not empty
- Ensure the output directory is writable
- Check that the logo file path exists (if
--logo is used)
高级企业PDF生成器
从Markdown输入生成高质量的企业级PDF文档。该技能应用去AI人性化处理流程,使LLM生成的文本听起来更自然,然后将其渲染为采用专业海军蓝+金色设计系统(营销代理机构品质)的高级PDF。
何时使用此技能
当用户出现以下情况时调用此技能:
- - 要求从Markdown或文本内容创建PDF
- 想要生成专业报告、提案或文档
- 需要将内容导出为视觉精美的企业文档
- 说出类似:创建PDF、生成报告PDF、导出为企业PDF、制作高级PDF等短语
如何调用
基本用法(Markdown字符串)
bash
python3 premium-pdf/generate_pdf.py \
--input # 报告标题
您的Markdown内容在此... \
--output output.pdf \
--title 文档标题
从Markdown文件
bash
python3 premium-pdf/generate_pdf.py \
--input path/to/document.md \
--output output.pdf \
--title 文档标题
页眉带公司Logo
bash
python3 premium-pdf/generate_pdf.py \
--input path/to/document.md \
--output output.pdf \
--title 季度报告 \
--logo path/to/company-logo.png
参数
| 参数 | 必填 | 描述 |
|---|
| --input 或 -i | 是 | Markdown文本(字符串)或 .md 文件路径 |
| --output 或 -o |
是 | 输出PDF文件路径(例如 report.pdf) |
| --title 或 -t | 否 | 页眉中显示的文档标题(默认:企业报告) |
| --logo | 否 | 要在页眉中显示的PNG或JPG Logo图片路径 |
技能功能
1. 去AI文本人性化处理
在渲染之前,技能自动应用文本转换:
- - 长破折号(—)→ 替换为 , (自然的逗号分隔流)
- 短破折号(–)→ 替换为 -
- 正式AI短语移除:值得注意的是、此外、而且、另外、总之、为了
- AI流行词替换:利用→使用、运用→使用、深入探讨→探索、全面→完整、强大→稳固、无缝→顺畅
- 不必要的修饰词去除:基本上、字面上、实际上、相当
- 双空格规范化
2. 高级PDF设计(海军蓝+金色)
生成的PDF具有以下特点:
- - 配色方案:60%白色/浅灰色,30%深海军蓝(#1A2B4A),10%金色(#C9A84C)
- 排版层级:H1 28pt → H2 20pt → H3 16pt → H4 13pt → 正文 11pt
- 专业页眉:海军蓝背景配白色标题+日期(可选Logo支持)
- 金色装饰线:H2标题下方和页脚上方
- 页码:居中页脚带页数
- 两端对齐正文,呈现专业文档外观
3. 支持的Markdown元素
- - 标题:#、##、###、####
- 粗体和斜体以及粗斜体文本
- 行内代码和围栏代码块
- 无序列表(-、*、+)和有序列表(1.、2.)
- 嵌套列表项
- 块引用(>)
- 水平线(---)
- 超链接(渲染为粗体文本)
设置(首次使用)
安装Python依赖:
bash
pip3 install -r premium-pdf/requirements.txt
或直接安装:
bash
pip3 install reportlab>=4.0.0 Pillow>=9.0.0
交互示例
用户:从这个Markdown报告创建PDF,保存为quarterly-report.pdf
代理操作:
bash
python3 premium-pdf/generate_pdf.py \
--input [用户的Markdown内容] \
--output quarterly-report.pdf \
--title 2026年第一季度报告
输出:PDF生成成功:/absolute/path/to/quarterly-report.pdf
运行后,告知用户输出路径,以便他们打开文件。
错误处理
如果脚本返回错误:
- 1. 检查是否安装了 reportlab:pip3 install reportlab
- 验证输入的Markdown不为空
- 确保输出目录可写
- 检查Logo文件路径是否存在(如果使用了 --logo)