pdf-studio

👤 Bingo 📦 v1.1.0 ⭐ 4.1 ⬇️ 941 下載
📄 辦公效率 免費

📖 技能介紹


name: pdf-studio description: Professional PDF document generator. Use when user needs to create reports, invoices, certificates, portfolios, or any publication-ready PDF. Supports images, tables, charts, TOC, headers/footers, and cross-platform fonts. Generates print-quality PDFs. PDF文件生成、專業報告、發票製作。 version: 1.1.0 license: MIT-0 metadata: {"openclaw": {"emoji": "📑", "requires": {"bins": ["python3"]}}}


PDF Studio

Professional PDF document generator that creates publication-ready PDFs with perfect typography and layout.

Features

  • 📑 Print Quality: 300 DPI, CMYK support, bleed marks
  • 🎨 Professional Layout: Multi-column, headers/footers, page numbers
  • 🖼️ Image Support: Embedded images, captions, watermarks
  • 📊 Tables & Charts: Formatted tables, bar charts, pie charts
  • 📐 Typography: Professional fonts, kerning, ligatures
  • 🌍 Multi-Language: Chinese, English, Japanese, etc.
  • Cross-Platform: Windows, macOS, Linux
  • 📱 PDF/A Compliant: Archival quality

Trigger Conditions

  • "生成PDF" / "Generate PDF"
  • "幫我做一份報告" / "Create a report"
  • "製作發票" / "Create an invoice"
  • "生成證書" / "Generate certificate"
  • "製作作品集" / "Create portfolio"
  • "pdf-studio"

Document Types

Business (商務)

  • 年度報告
  • 商業計劃書
  • 發票/賬單
  • 合同/協議
  • 產品手冊

Academic (學術)

  • 論文排版
  • 學位證書
  • 研究報告
  • 會議論文

Government (政府)

  • 公文
  • 公告
  • 證書
  • 表格

Personal (個人)

  • 簡歷
  • 作品集
  • 證書
  • 邀請函

Step 1: Understand Requirements

請提供以下資訊:

文件型別:(報告/發票/證書/簡歷/其他)
紙張大小:(A4/Letter/A3/自定義)
方向:(縱向/橫向)
頁邊距:(預設/自定義)
字型要求:(預設/指定字型)
語言:(中文/英文)
特殊要求:(水印/頁首頁尾/目錄等)

Step 2: Generate PDF

PDF generation requires Python libraries. Users should install manually before use:

  • FPDF2: Simple PDF generation
  • WeasyPrint: HTML/CSS to PDF
  • ReportLab: Advanced PDF features

Basic PDF Generation

  1. Install a PDF library (e.g., FPDF2)
  2. Create document with pages
  3. Add content (text, images, tables)
  4. Output PDF file

HTML/CSS to PDF

  1. Prepare HTML content
  2. Apply CSS styles
  3. Convert to PDF using library

Typography Settings (字型設定)

Cross-Platform Fonts

Language Serif Sans Mono
Chinese Noto Serif SC Noto Sans SC Noto Sans Mono CJK SC
English Liberation Serif Liberation Sans Fira Code
Japanese Noto Serif JP Noto Sans JP Noto Sans Mono CJK JP

Font Paths (for reference)

  • macOS: /System/Library/Fonts/
  • Linux: /usr/share/fonts/
  • Windows: C:/Windows/Fonts/

Page Layout (頁面佈局)

Standard Sizes

Size Dimensions (mm) Use Case
A4 210 × 297 Standard documents
Letter 216 × 279 US documents
A3 297 × 420 Large reports

Margin Presets

7w4.net小蔥技能站收錄全網優質技能,值得收藏。

Preset Top/Bottom Left/Right
Normal 2.54cm 2.54cm
Narrow 1.27cm 1.27cm
Wide 2.54cm 5.08cm

Error Handling

字型缺失       → 使用開源字型回退
圖片格式不支援 → 轉換為PNG/JPEG
記憶體不足       → 分頁處理大文件
生成失敗       → 輸出HTML備選

Security Notes (安全說明)

  • ✅ No network calls or external endpoints
  • ✅ No credentials or API keys required
  • ✅ Local file processing only
  • ✅ No data uploaded to external servers
  • ⚠️ Requires python3 and manually installed libraries
  • ⚠️ Review code before execution

Notes

  • 使用FPDF2確保跨平臺一致性
  • 所有字型可嵌入PDF中
  • 支援PDF/A歸檔標準
  • 圖片自動壓縮最佳化
  • 支援水印和頁首頁尾
  • 依賴:使用者需自行安裝 Python 庫(fpdf2/weasyprint/reportlab)

🤖 AI 評測

這個 Skill 的文件質量不錯,提供了全面的 PDF 生成知識和多種文件型別的指導,字型、頁面設定等細節考慮周到。但它更像一本使用手冊而非可直接使用的工具——沒有現成的程式碼模板,需要使用者自己編寫程式碼才能真正生成 PDF。如果你不熟悉 Python 程式設計,可能需要額外學習才能用起來。文件本身的資訊豐富度是合格的,但實用性和易用性還有提升空間。

📊 多維度評分

適應性4.5
規範性4
有效性4.1
可靠性3.7
可信度4.8

📁 包含檔案 (4 個)

📄 LICENSE.txt 901 B
📄 SKILL.md 4.1 KB
📄 _meta.json 129 B
📄 references/templates.md 792 B