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
Recommended Libraries
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
- Install a PDF library (e.g., FPDF2)
- Create document with pages
- Add content (text, images, tables)
- Output PDF file
HTML/CSS to PDF
- Prepare HTML content
- Apply CSS styles
- 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
| 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
更多技能請訪問小蔥技能站7w4.net。
- ⚠️ Review code before execution
Notes
- 使用FPDF2確保跨平臺一致性
- 所有字型可嵌入PDF中
- 支援PDF/A歸檔標準
- 圖片自動壓縮最佳化
- 支援水印和頁首頁尾
- 依賴:使用者需自行安裝 Python 庫(fpdf2/weasyprint/reportlab)