Preface¶
Converting English PDFs into readable Chinese versions is commonly done by exporting the entire document and pasting it into Word or using online translation tools. However, this often leads to misaligned formulas, charts, and tables of contents, while comments and background colors are easily lost. If you want to trigger “translate this PDF” via natural language in environments that support Skills (such as Cursor or Claude Code) and receive a new file with a structure closely resembling the original, the following introduction covers the Multilingual Document Translation with Layout Preservation (Coordinate @org-b6kzcl68/translate-pdf) on SkillHub. This skill is marked with requires_api_key=false, meaning it can be installed and used according to official instructions without additional API Key configuration.
What is this¶
Multilingual Document Translation with Layout Preservation is an Agent Skill categorized under Office Efficiency (office-efficiency). Version 1.0.0, sourced from enterprise, and published by Chongqing Tanguang Network Media Co., Ltd..
In one sentence: It translates PDFs from one language to a target language while striving to preserve the original document’s structure, layout, and styling (including colors, backgrounds, and text positioning), outputting a new PDF with a language suffix.
- SkillHub Display Page: https://www.skillhub.cn/skills/org-b6kzcl68/translate-pdf
- Official Address: https://api.skillhub.cn/user_e263a450/translate-pdf
Core Features¶
The following capabilities are derived from the SkillHub page and the fetched description; features not listed are omitted.
-
Three-Step Pipeline
- Uses scripts to extract all deduplicated text from the PDF.
- Generates a JSON mapping file containing the source and translated text.
- Calls a script to write the translation back into the PDF using specified fonts, resulting in a new file.
-
Layout and Styling
Emphasizes the preservation of structure, layout, and styling; uses transparent filling during the write-back process to maintain the original background colors as much as possible. -
Multilingual Fonts
Includes built-in fonts for Latin scripts, Simplified Chinese, Traditional Chinese, Japanese, and Korean. CJK (Chinese, Japanese, Korean) fonts are automatically scaled to 90% to improve layout fitting. -
Trigger Methods
Used when a user needs to translate a PDF from one language to another, convert a PDF language version, or create a translated copy. Typical phrasing includes: translate PDF, translate PDF to Chinese or English,translate this PDF, etc.
Installation and Activation¶
The installation process follows the SkillHub general documentation skillhub.md. First, check if the CLI is already on your machine:
command -v skillhub && skillhub --version
If it is not installed, you can execute the full installation (CLI + Default Skill):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing this skill, it is mandatory to use --dir to point to the current Agent’s skills directory; installing to the default ./skills/ might not be recognized by the Agent. The package name provided on the SkillHub page is @org-b6kzcl68/translate-pdf.
skillhub install @org-b6kzcl68/translate-pdf --dir <skills directory>
Common client skills directories (excerpted from official installation docs; select one based on your actual client):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, restart or refresh the Agent according to the conventions of your client to ensure the skill is loaded.
Typical Usage¶
Public information does not provide specific standalone shell subcommand names. The reproducible workflow is: in a conversation where the Skill is enabled, specify the source PDF path and target language. The Agent will then execute the three steps via the skill’s internal scripts—extracting deduplicated text, maintaining the source/translation JSON, and writing back to output a new PDF with a language suffix.
Example intents (Natural language, not fixed APIs):
- “Translate
/path/to/paper.pdfto Simplified Chinese, preserve the layout.” - “translate this PDF to English, keep layout.”
- “Create a Chinese copy of this PDF, do not change the background color.”
Specific script paths and parameters should be based on the SKILL.md and accompanying scripts within the installation package; this article does not fabricate backend or configuration items not present in the official description.
Applicable Scenarios and Notes¶
Who is it for
- Users who need copies of English-to-Chinese or other language PDFs and want the layout, colors, and text positioning to remain as consistent with the original as possible.
- Teams already using Skills in environments like Cursor, Claude Code, or Codex who wish to process PDFs via dialogue, either in batch or one-off.
Usage Notes
- Current SkillHub statistics (based on the page): Rating 100000, Downloads 105, Installations 0; data changes over time, so please refer to the real-time display on SkillHub.
- The skill focuses on text extraction—translation mapping—font write-back; for scanned PDFs, complex vector graphics, or pages heavily dependent on OCR, effectiveness depends on the source file and the skill script’s capabilities. The official description does not promise a separate OCR pipeline.
- The page notes that for more skills and usage assistance, you can search for “AI灵匣” on Taobao—this is solely an official traffic directive and is unrelated to the installation commands.
- User clues previously mentioned pdf2zh-next, multiple translation backends, etc., but the current SkillHub description and display page do not specify this, so this article does not list them as verified features.
Conclusion¶
Multilingual Document Translation with Layout Preservation encapsulates PDF translation into a three-step process triggerable by an Agent: deduplicated extraction, JSON mapping, and font-based write-back. It performs 90% scaling and transparent filling specifically for CJK, making it suitable for scenarios where “a translated PDF is needed, but it must look as close to the original layout as possible.” Installation and package coordinates are subject to SkillHub:
- https://www.skillhub.cn/skills/org-b6kzcl68/translate-pdf
- https://api.skillhub.cn/user_e263a450/translate-pdf