Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<instructions>
<instructions>
<instructions>
<instructions>
PDF Professional Suite
PDF专业工具套件
🛠 High-Fidelity Creation
🛠 高保真生成
When generating polished reports:
- Generate: Use Reportlab (programmatic) or Platypus (templated) as the primary engine.
- Preview: Convert every page to PNG for inspection:
pdftoppm -png -r 150 document.pdf page
- Inspect: Verify that charts, tables, and typography are sharp and well-aligned.
生成精美报告时:
- 生成:使用Reportlab(编程式)或Platypus(模板式)作为核心引擎。
- 预览:将每一页转换为PNG格式以便检查:
pdftoppm -png -r 150 document.pdf page
- 检查:确认图表、表格和排版清晰且对齐规整。
📋 Common Operations
📋 常见操作
1. Form Filling
1. 表单填写
- Identify fillable fields using .
scripts/extract_form_field_info.py - Reference: See for detailed instructions on filling PDF forms.
references/forms.md - Populate fields programmatically and verify using the Render loop.
- 使用识别可填写字段。
scripts/extract_form_field_info.py - 参考文档:详见获取PDF表单填写的详细说明。
references/forms.md - 通过编程方式填充字段,并使用渲染循环进行校验。
2. Manipulation (pypdf)
2. 文档编辑(pypdf)
- Merge: Use to combine multiple documents.
PdfWriter - Split: Extract individual pages into new files.
- Secure: Add passwords or watermarks using .
PdfWriter.encrypt() - Reference: See for advanced features and JS library alternatives.
references/reference.md
- 合并:使用合并多个文档。
PdfWriter - 拆分:提取单页保存为新文件。
- 加密:使用添加密码或水印。
PdfWriter.encrypt() - 参考文档:详见获取高级功能及JS库替代方案。
references/reference.md
3. Extraction (pdfplumber)
3. 内容提取(pdfplumber)
- Extract text with layout preservation.
- Extract complex tables directly into Pandas DataFrames for analysis.
- 提取文本并保留原排版。
- 将复杂表格直接提取为Pandas DataFrames以便分析。
💎 Quality Expectations
💎 质量要求
- Legibility: Text must be readable at 100% zoom; avoid walls of dense text.
- Polish: Maintain intentional visual design—consistent margins and color palettes.
- Verification: Zero defects (black squares, clipped text) permitted in final output.
- 可读性:文本在100%缩放比例下必须清晰可读;避免密集的大段文本。
- 美观度:保持统一的视觉设计——一致的页边距和配色方案。
- 校验标准:最终输出不允许存在任何缺陷(如黑块、文本截断)。