返回顶部
p

premium-pdf

Generate premium enterprise-style PDFs from markdown content, with automatic de-AI text humanization (removes em dashes, AI filler phrases, overly formal language) and a professional Navy + Gold design system.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
118
下载量
0
收藏
概述
安装方式
版本历史

premium-pdf

# 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) ```bash python3 premium-pdf/generate_pdf.py \ --input "# Report Title Your markdown content here..." \ --output output.pdf \ --title "Document Title" ``` ### From a markdown file ```bash python3 premium-pdf/generate_pdf.py \ --input path/to/document.md \ --output output.pdf \ --title "Document Title" ``` ### With a company logo in the header ```bash python3 premium-pdf/generate_pdf.py \ --input path/to/document.md \ --output output.pdf \ --title "Quarterly Report" \ --logo path/to/company-logo.png ``` --- ## Parameters | Parameter | Required | Description | |-----------|----------|-------------| | `--input` or `-i` | Yes | Markdown text (string) or path to a `.md` file | | `--output` or `-o` | 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 ` - ` - **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: `#`, `##`, `###`, `####` - **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: ```bash pip3 install -r premium-pdf/requirements.txt ``` Or install directly: ```bash pip3 install "reportlab>=4.0.0" "Pillow>=9.0.0" ``` --- ## Example Interaction **User**: "Create a PDF from this markdown report and save it as quarterly-report.pdf" **Agent action**: ```bash python3 premium-pdf/generate_pdf.py \ --input "[user's markdown content]" \ --output quarterly-report.pdf \ --title "Quarterly Report Q1 2026" ``` **Output**: `PDF generated successfully: /absolute/path/to/quarterly-report.pdf` 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: `pip3 install reportlab` 2. Verify the input markdown is not empty 3. Ensure the output directory is writable 4. Check that the logo file path exists (if `--logo` is used)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 premium-pdf-1776107289 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 premium-pdf-1776107289 技能

通过命令行安装

skillhub install premium-pdf-1776107289

下载 Zip 包

⬇ 下载 premium-pdf v1.0.0

文件大小: 11.62 KB | 发布时间: 2026-4-14 10:12

v1.0.0 最新 2026-4-14 10:12
Initial release of premium-pdf.

- Generate enterprise-grade PDFs from markdown content.
- Automatically "de-AI" text for natural, human-sounding results.
- Features a professional Navy + Gold design system.
- Supports markdown elements including headings, lists, code blocks, and more.
- Allows custom document titles and optional logo in the PDF header.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部