Chinese PDF Report Typesetting for Openclaw

Generate professional Chinese PDF reports that stay readable on phones, keep tables within page boundaries, and avoid wasteful page breaks.

lingyu9495-source
v1.0.0
Sep 26, 2026
0
191
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cn-pdf-report-typeset

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cn-pdf-report-typeset using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Chinese PDF Report Typesetting?

This Openclaw Skills tool provides a reusable Python and ReportLab workflow for producing polished Chinese-language PDF reports. Its layout standards prioritize mobile readability, A4 portrait pages, compact spacing, Chinese font rendering, and tables that wrap instead of overflowing.

Use the supplied report templates for report covers, section headings, conclusion callouts, tables, and page footers. The skill also documents practical layout pitfalls and requires checking the generated PDF before delivery. It runs locally without an API key.

Chinese PDF Report Typesetting Use Cases

  • Create feasibility studies, due diligence reports, project analyses, and other formal Chinese client deliverables.
  • Turn existing research or analysis into a downloadable PDF when a user asks for a report or conclusion in PDF format.
  • Produce reports with mobile-readable text, Chinese typography, clear tables, page numbers, and a prominent conclusion.
  • Reformat a draft whose tables overflow, whose Chinese text renders incorrectly, or whose pages contain excessive whitespace.
  • Generate print-ready A4 portrait documents using a consistent visual style.

How Chinese PDF Report Typesetting Works

  1. Retrieve the relevant analysis or source material, reusing existing research where available rather than rewriting it unnecessarily.
  2. Copy the recommended ReportLab template and replace its content sections, including cover details, headings, and table data.
  3. Apply the layout rules: A4 portrait, readable type sizes, compact margins, left-aligned paragraphs, and Paragraph-based table cells with CJK wrapping.
  4. Generate the PDF with Python, using the configured Chinese fonts and report styling.
  5. Inspect the output with PyMuPDF: check page count, Chinese text rendering, conclusion presence, page balance, and content boundaries for overflow.
  6. Deliver the PDF file to the user through the appropriate channel; in the documented Feishu workflow, send the file itself and a brief summary of its key conclusions.

Chinese PDF Report Typesetting Setup

Install ReportLab in the Python environment used to run the skill. PyMuPDF is used for output validation. On Windows, the workflow can use the system-installed Microsoft YaHei font files; no separate font download is required. The .ttc font must be registered with subfontIndex=0.

python -m pip install reportlab pymupdf

Copy the recommended template, templates/reportlab_gold_template.py, and replace the report content while preserving its layout helpers. Confirm that the template points to valid font paths on the current machine. Generate the PDF and run a validation check before delivery. The original instructions reference a project-specific $V Python environment and Windows font paths, so adapt the interpreter and paths to your setup.

Chinese PDF Report Typesetting Data Schema & Taxonomy

The skill uses a Python template and report content rather than defining a separate database or structured input format.

Item Purpose
templates/reportlab_gold_template.py Recommended ReportLab template for gold-toned styling, left-aligned text, larger type, compact margins, and table handling.
templates/reportlab_chinese_template.py Earlier Chinese-report template, retained as a legacy option.
Report content sections Cover text, date or source, headings, paragraphs, and table data inserted into the template.
Generated .pdf Final A4 portrait report, typically saved in the configured project output directory.
PyMuPDF inspection Post-generation checks for pages, extracted Chinese text, conclusions, and layout issues.

The recommended visual taxonomy uses metallic gold for section and table headers, near-black for body text, warm light-gold table banding, and light-gold grid lines. The layout includes a cover, naturally flowing report sections, tables with repeated header rows, a conclusion callout, and page-number footers. Keep page breaks to the cover-to-body transition; avoid forcing a new page for every chapter.

Chinese PDF Report Typesetting Advanced Features

  • Mobile-first typography guidance, with the recommended template emphasizing large body and table text and prominent headings.
  • Chinese table-cell wrapping using ReportLab Paragraph objects and wordWrap="CJK" to prevent long content from overflowing.
  • Reusable helpers for styled tables, inline emphasis, cover elements, conclusion boxes, and page footers.
  • Layout controls using KeepTogether for tables and suitable content blocks, while avoiding oversized grouped blocks that can create nearly empty pages.
  • Automated or script-assisted checks for font-size constants, unnecessary page breaks, page count, extracted text, and rendering problems.
  • PyMuPDF-based inspection for page balance and content crossing the printable right margin; overflow checks should account for the actual page margins and exclude footer text.
  • Local execution with no API key, using system-installed Microsoft YaHei fonts on supported Windows environments.
  • A documented delivery workflow for sending the finished PDF as an accessible file, with a concise summary of its main conclusions.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*