Token导航 LogoToken导航

Agent Skill · 研究检索

pdf-translate-skill(PDF translate 技能)

pdf-translate-skill 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pdf-translate-skill 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 34,885。

总安装 2,165周安装 93GitHub Stars 公开资料未说明下载 759核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pdf-translate-skill(PDF translate 技能)
来源仓库:https://github.com/overdue-lin/pdf-translate-skill
安装命令:
openclaw skills install pdf-translate-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pdf-translate-skill

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

翻译 PDF 或 arXiv 论文,兼顾内容与格式还原。提取文本与图像后重建基于 LaTeX 的文档结构。适合科研人员快速获取外文文献核心信息。pdf-translate-skill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。依赖外部翻译服务,可能存在延迟或字符限制。

输出结果需人工校验数学符号与图表完整性。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install pdf-translate-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pdf-translate-skill 怎么安装?

在终端执行 openclaw skills install pdf-translate-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pdf-translate-skill 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pdf-translate-skill 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

pdf-translate-skill 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

pdf-translate-skill 用的人多吗?

公开数据是累计安装 2,165 次,近一周安装 93 次,下载 759 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pdf-translate-skill 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
pdf-translate-skill

PDF translate 技能 · 本页

2,165—需要联网MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
pdf-translator
description
Translate PDF documents while preserving original formatting. Converts PDF pages to images for layout analysis, extracts text and embedded images, translates content using agent's multilingual capabilities, and generates LaTeX code to recreate the original document structure with translated text. Special support for arXiv papers: when user provides arXiv ID (e.g., "2310.12345") or arXiv URL (e.g., "https://arxiv.org/abs/2310.12345" or "https://arxiv.org/pdf/2310.12345.pdf"), automatically download the source TeX files, translate the LaTeX content, and compile to PDF.

PDF Translator Skill

A comprehensive skill for translating PDF documents while maintaining their original layout, formatting, and visual structure. This skill combines multimodal analysis, text extraction, machine translation, and LaTeX typesetting to produce high-quality translated PDFs.

Two Translation Modes

This skill supports two distinct translation workflows. Choose the appropriate mode based on your input:

ModeInputMethodQuality
arXiv ModearXiv ID or URLDownload source TeX → Translate → CompileHigher (preserves all formatting)
Local PDF ModeLocal PDF filePDF → Images → Layout Analysis → Translate → Recreate in LaTeXGood (reconstructed layout)

When to Use Each Mode

Use arXiv Mode when:

  • User provides an arXiv ID like 2310.12345
  • User provides an arXiv URL like https://arxiv.org/abs/2310.12345 or https://arxiv.org/pdf/2310.12345.pdf
  • The paper has available TeX source files

Use Local PDF Mode when:

  • User provides a local PDF file path
  • The PDF is not from arXiv
  • The arXiv paper does not have source available (only PDF)

Fallback rule: If arXiv source download fails, fall back to Local PDF Mode.

Prerequisites

Required Software

  • Python 3.8+ with pip
  • PyMuPDF (pip install pymupdf pillow)
  • XeLaTeX (TeX Live or MiKTeX) for PDF compilation
  • ctex LaTeX package for Chinese support
  • wget or curl (for downloading arXiv source files)

Installation Commands

# Python dependencies
pip install pymupdf pillow requests

# LaTeX (choose one)
# Ubuntu/Debian:
sudo apt install texlive-xetex texlive-lang-chinese

# macOS (Homebrew):
brew install mactex

# Windows: Download MiKTeX from https://miktex.org/

Mode 1: arXiv Paper Translation

Preferred method for arXiv papers because source TeX files preserve all formatting automatically.

Workflow

arXiv ID/URL → Download Source TeX → Translate TeX Content → Compile → PDF Output

Advantages over Local PDF Mode:

  • Source TeX files preserve all formatting automatically
  • No need for layout analysis or image extraction
  • Higher quality translation output
  • Faster processing

Step 1: Detect arXiv Input

Detect if user provided:

  • arXiv ID: e.g., 2310.12345, hep-th/9901001
  • arXiv URL: e.g.,

- https://arxiv.org/abs/2310.12345 - https://arxiv.org/pdf/2310.12345.pdf - https://arxiv.org/abs/hep-th/9901001

Extract arXiv ID from input:

  • From URL: extract the ID after /abs/ or /pdf/
  • From direct ID: use as-is

Step 2: Download arXiv Source

Download the source TeX files from arXiv:

# Using the provided script
python scripts/download_arxiv_source.py 2310.12345 output_dir/

# Or with URL
python scripts/download_arxiv_source.py https://arxiv.org/abs/2310.12345 ./

Manual download:

# Use arXiv's official source download
# Navigate to: https://arxiv.org/e-print/{arxiv_id}
# Download format: .tar.gz containing all source files

# Or use wget
wget -O source.tar.gz https://arxiv.org/e-print/2310.12345
tar -xzf source.tar.gz

The downloaded archive typically contains:

  • Main .tex file (usually named after the paper ID)
  • Style files (.bst, .cls)
  • Bibliography (.bib)
  • Figures (.pdf, .png, .eps)
  • Other source files

Step 3: Identify Main TeX File

Find the main TeX file in the extracted contents:

  • Usually named after the paper ID (e.g., main.tex, paper.tex)
  • Check for \documentclass or \begin{document} to identify the entry point
  • May need to inspect multiple .tex files to find the one with \maketitle or \begin{document}

Step 4: Translate TeX Content

Read and translate the main TeX file:

1. Identify translatable content:

  • Text between { and } in regular text environments
  • Section titles, captions, footnotes
  • Abstract content

2. Preserve non-translatable elements:

  • Math formulas ($...$, \[...\])
  • LaTeX commands (\ ef{...}, \cite{...})
  • Figure/table commands
  • Code blocks

3. Translation approach:

  • Translate text content while keeping LaTeX markup intact
  • Use ctex or \usepackage{ctex} for Chinese support
  • Maintain paragraph structure

4. Key translation rules:

  • Keep all \section{...}, \subsection{...} content - translate the text inside
  • Keep all \caption{...} content - translate inside
  • Keep all \footnote{...} content - translate inside
  • Keep math formulas completely unchanged
  • Keep \includegraphics{} paths unchanged
  • Keep \bibliography{} unchanged
  • Translate abstract text

Example translation:

% Original:
\section{Introduction}
We present a new method for...

% Translated:
\section{介绍}
我们提出了一种新的方法...

Step 5: Compile Translated TeX

IMPORTANT: Compile THREE times to resolve all citations and references:

# Ensure Chinese support
# Add to preamble if not present:
\usepackage{ctex}

# Compile THREE times to resolve all citations and references
xelatex translated.tex  # Pass 1: Initial compilation
xelatex translated.tex  # Pass 2: Resolve citations/references
xelatex translated.tex  # Pass 3: Final resolution

Or use the provided script:

python scripts/compile_latex.py translated.tex output_dir/ --passes 3

Why 3 passes?

  • Pass 1: Processes document structure, outputs citations as "?"
  • Pass 2: Reads citation info from auxiliary file, resolves references
  • Pass 3: Final resolution ensures all \ ef{}, \cite{}, and bibliography are correctly rendered

Step 6: Handle Dependencies

If compilation fails due to missing packages or files:

  1. Check for missing .sty, .cls, or .bst files
  2. Copy missing files from the original arXiv source
  3. Check \graphicspath for figure locations
  4. Ensure all \input{} files are present

arXiv Translation Example

User Input:

"请翻译这篇 arXiv 论文: https://arxiv.org/abs/2310.12345"

Workflow Execution:

Step 1: Detect arXiv ID

  • URL: https://arxiv.org/abs/2310.12345
  • Extracted ID: 2310.12345

Step 2: Download Source

python scripts/download_arxiv_source.py 2310.12345 ./arxiv_src

Step 3: Identify Main TeX File

  • Found: main.tex (the main entry point)
  • Also found: refs.bib, figures/, style files

Step 4: Translate TeX Content

  • Read main.tex
  • Translate section titles: \section{Abstract} → \section{摘要}
  • Translate body text while preserving:

- Math formulas: $E = mc^2$ (unchanged) - Citations: \cite{author2023} (unchanged) - Figures: \includegraphics{fig1.pdf} (unchanged)

  • Output: main_zh.tex

Step 5: Add Chinese Support

  • Ensure \usepackage{ctex} or \usepackage[UTF8]{ctex} is in preamble
  • If not present, add it

Step 6: Compile to PDF

python scripts/compile_latex.py main_zh.tex ./output --passes 3

Step 7: Deliver Output

  • Translated PDF saved to: ./output/main_zh.pdf

arXiv Specific Issues

Cannot Download Source:

  • Check if the paper has source available (not all papers have TeX sources)
  • Try alternative URL: https://arxiv.org/e-print/{arxiv_id}
  • Some older papers may not have source available
  • Fallback: If download fails, use Local PDF Mode

Missing Package Errors:

  • Copy missing .sty, .cls files from the original download to your working directory
  • Check for \usepackage{...} commands and ensure all referenced files exist
  • Use kpsewhich to check if packages are installed system-wide

arXiv ID Format:

  • New format: YYMM.NNNNN (e.g., 2310.12345)
  • Old format: archive/YYMMNNN (e.g., hep-th/9901001)
  • Both formats work with the download URL

Mode 2: Local PDF Translation

Use this mode when translating local PDF files or when arXiv source is unavailable.

Workflow

PDF Input → Page Images → Layout Analysis → Text Extraction → Translation → LaTeX Generation → PDF Output

Step 1: Convert PDF to Page Images

Convert each PDF page to a high-quality image for multimodal analysis:

python scripts/pdf_to_images.py input.pdf output_pages/ --dpi 150

Output:

  • page_001.png, page_002.png, ... (page images)
  • manifest.json (page dimensions and metadata)

Step 2: Extract Embedded Images

Extract original images from the PDF for reuse in the translated document:

python scripts/extract_images.py input.pdf output_extracted/

Output:

  • images/img_001_01.png, ... (extracted images)
  • images_manifest.json (image positions and metadata)

Step 3: Analyze Layout and Extract Content

For each page image, analyze the layout and extract content:

Using multimodal analysis:

  1. Describe the page layout structure (columns, sections, headers, footers)
  2. Identify text blocks, their positions, and reading order
  3. Identify figures, tables, and their captions
  4. Note any special formatting (lists, equations, quotes)

Prompt template for layout analysis:

Analyze this PDF page image and describe:
1. Overall layout structure (columns, margins, alignment)
2. Text blocks with their approximate positions and hierarchy
3. Images, figures, or tables with their locations
4. Any special elements (headers, footers, page numbers, footnotes)

Provide a structured description that can be used to recreate this layout in LaTeX.

Step 4: Translate Text Content

Translate the extracted text while maintaining:

  • Technical terms accuracy
  • Proper nouns (names, places)
  • Formatting markers (emphasis, bold)
  • Contextual meaning

Translation guidelines:

  • Preserve original paragraph structure
  • Maintain consistent terminology
  • Handle inline formatting (bold, italic, code)
  • Keep mathematical formulas unchanged

Step 5: Generate LaTeX Code

Create LaTeX code that recreates the original layout with translated content.

Key considerations:

  1. Document class: article for papers, report for longer documents
  2. Page geometry: Match original margins
  3. Multi-column layouts: Use multicol package
  4. Figures: Use \includegraphics with proper positioning (Insert the extracted images into their original positions)
  5. Tables: Recreate with tabular or longtable (Insert the identical table at its original position)
  6. Chinese support: Always use ctex package with XeLaTeX
  7. Important: Modify the template format to match the style of the original PDF. Pay special attention to the switching between single-column and double-column layouts.

Reference: See ./references/latex_templates.md for LaTeX generation details.

Template structure:

\documentclass[12pt, a4paper]{article}
\usepackage{ctex}  % Chinese support
\usepackage{graphicx}
\usepackage{geometry}
% ... other packages

\begin{document}
% Translated content here
\end{document}

Step 6: Compile LaTeX to PDF

IMPORTANT: Compile THREE times to ensure all citations and references are properly resolved:

python scripts/compile_latex.py translated.tex output_dir/ --passes 3

Output:

  • translated.pdf (final translated document)

Troubleshooting: If errors occur, refer to ./references/troubleshooting.md.

Working Directory Structure

working_dir/
├── input.pdf
├── pages/           # Page images
├── extracted/       # Extracted images
├── translated.tex   # Generated LaTeX
└── output.pdf       # Final result

Page-by-Page Processing

For each page:

  1. View page image using multimodal capability
  2. Analyze layout structure:

- Number of columns - Section headings - Paragraph blocks - Figure/table positions - Header/footer content

  1. Extract text content:

- Use vision to identify text regions - Transcribe text from image (OCR-like) - Note formatting (bold, italic, font sizes)

  1. Translate content:

- Translate each text block - Maintain structure and formatting - Handle technical terms appropriately

  1. Generate LaTeX for page:

- Apply appropriate layout template - Insert translated text - Include images with correct positions - Handle special elements (tables, equations)

Document Assembly

  1. Combine all pages into single LaTeX file:

- Create base_template.tex as foundation - Insert page content in order - Handle cross-page elements (tables, figures)

  1. Compile to PDF:

- Use scripts/compile_latex.py - Run multiple passes for references

  1. Verify output:

- Check all pages rendered correctly - Verify images are included - Confirm formatting matches original


Common Layout Patterns

Single Column Document

\section{Section Title}
Translated paragraph content here.

\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.8\	extwidth]{image.png}
  \caption{Translated caption}
\end{figure}

Two Column Layout

\begin{multicols}{2}
\section{Left Column}
Content...

\section{Content Spanning}
...
\end{multicols}

Academic Paper Structure

\	itle{Translated Title}
\author{Authors}
\maketitle

\begin{abstract}
Translated abstract...
\end{abstract}

\section{Introduction}
Content...

\section{Methods}
Content...

\bibliographystyle{plain}
\bibliography{references}

Reference Files

  • references/latex_templates.md - LaTeX code patterns for various layouts
  • references/troubleshooting.md - Common issues and solutions

Troubleshooting

Font Issues

If Chinese characters don't render:

  • Ensure XeLaTeX is used (not pdfLaTeX)
  • Check ctex package is installed
  • Verify system has Chinese fonts installed

Image Not Found

If images don't appear in output:

  • Check \graphicspath includes correct directory
  • Verify image files exist and are readable
  • Use correct file extensions in \includegraphics

Layout Mismatch

If layout differs from original:

  • Adjust geometry settings for margins
  • Use appropriate figure placement options
  • Check for column count differences

Compilation Errors

If LaTeX compilation fails:

  • Check log file for specific errors
  • Verify all required packages are installed
  • Ensure no syntax errors in generated code

Best Practices

  1. Quality over speed: Take time to analyze layout accurately
  2. Iterative refinement: Generate, compile, review, and improve
  3. Preserve semantics: Maintain document meaning over exact formatting
  4. Handle edge cases: Be prepared for tables, equations, code blocks
  5. Test compilation: Verify LaTeX compiles before final output

Limitations

  • Exact pixel-perfect replication: LaTeX is not a pixel-based layout engine
  • Complex graphics: Vector illustrations may need to be captured as images
  • Custom fonts: May require font substitution
  • Dynamic content: JavaScript or form fields are not supported
  • Encrypted PDFs: Cannot process password-protected documents

Output Verification Checklist

  • [ ] All pages included in output
  • [ ] Text correctly translated
  • [ ] Images positioned correctly
  • [ ] Tables formatted properly
  • [ ] No LaTeX compilation errors
  • [ ] Chinese characters render correctly
  • [ ] Page numbers and headers present
  • [ ] Overall formatting matches original

Notes

  • arXiv fallback: Some arXiv papers don't have source available (only PDF). In this case, fall back to Local PDF Mode.
  • Complex packages: For papers with complex LaTeX packages, you may need to install additional packages.
  • Download requirement: The download_arxiv_source.py script requires curl or wget to be installed.
  • Large files: When the arXiv TeX or PDF file is large, translate it paragraph by paragraph and gradually write the translated content into the TeX file to be compiled.
  • References: If the file contains references, please keep them in English and do not translate the reference section.

平台分布

OpenClaw

84.37%
按下载量换算640

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills