Preface¶
Teaching materials, lecture notes, thesis appendices, and assignment scans are often circulated in PDF format. When these documents contain a large number of mathematical formulas and tables, directly copying them into Word often leads to formatting corruption, with formulas turning into images or garbled text. The subsequent costs for correction, excerpting, and secondary typesetting are high. Common practices include manually re-typing formulas or using generic PDF-to-Word tools, but for scanned versions and formula-dense documents, the results are often unstable.
The following introduces the “Math Formula PDF to Editable Word Format” (数学公式pdf转可编辑word格式) Skill on SkillHub. Designed for scanned mathematical PDFs, it aims to organize the content into a relatively neatly typeset Word document while preserving formulas (OMML) and table structures as much as possible. The conversion pipeline relies on MinerU, Pandoc, and python-docx. The facts in this article are derived from the Skill introduction provided in the task and public metrics on SkillHub. At the time of writing, https://api.skillhub.cn/user_1627842f/pdf-toord could not be retrieved via GET (HTTP 405). Please refer to the official SkillHub address for specific installation instructions.
What is this¶
“Math Formula PDF to Editable Word Format” is an Agent Skill published on SkillHub. The official entry point is:
https://api.skillhub.cn/user_1627842f/pdf-toord
It is categorized under office-efficiency on SkillHub, with a community rating of 97,783 and 862 downloads (data varies with SkillHub updates).
In one sentence: It enables coding Agents that support Skills to follow the workflow defined in SKILL.md to convert scanned mathematical PDFs into editable .docx files, rather than merely producing pure image pages or rough documents with lost formula structures.
Core Features¶
Based on the Skill introduction, the currently confirmed capabilities are as follows:
- Input: Scanned mathematical PDFs (layouts containing formulas and tables).
- Output: Word document (
.docx), emphasizing readable overall typesetting and ease of subsequent editing. - Formulas: Preserved as native Word OMML (Office Math Markup Language), facilitating further editing of formulas within Word rather than pasting full-page images.
- Tables: Attempts to preserve table structures to prevent them from collapsing into a pure text stream after conversion.
- Tech Stack: The Skill description explicitly relies on MinerU (document parsing and layout/formula recognition), Pandoc (a link in the format conversion pipeline), and python-docx (for generating or post-processing Word documents).
The Skill itself does not replace the installation and licensing configuration of these three components; it primarily encodes the steps of “Parsing → Conversion → docx Generation” into instructions executable by the Agent, reducing the burden of verbally describing the process every time.
Installation and Activation¶
This type of Skill generally follows the universal SKILL.md format: there is a set of instructions within the repository or compressed package, which the Agent reads to invoke tools on the local machine or in configured environments according to the steps.
Since the official API address currently cannot be directly accessed to fetch installation commands, it is recommended to follow the sequence below to avoid inconsistencies with the page:
- Open the skill page on SkillHub in a browser (the display page corresponding to the same skill ID as the official address, e.g.,
https://skillhub.cn/skills/user_1627842f/pdf-toord) and check if “Installation instructions for Agent” or CLI installation instructions are provided. - Send the installation instructions provided on the page to an Agent with Skills enabled, such as Cursor, Codex CLI, or Claude Code, allowing the Agent to complete the Skill file placement and directory configuration.
- Prepare the dependencies listed in the Skill introduction on your local machine or in the Agent runtime environment beforehand, including at least:
- MinerU: Used for PDF parsing, scanned document OCR, formula recognition, etc. (Refer to the OpenDataLab MinerU official documentation for CLI or API installation).
- Pandoc: Used for document format conversion; ensure
pandocis available in the PATH. - python-docx: A Python package used for reading and writing
.docxfiles; generally installed viapip install python-docx(specific versions depend on SKILL.md or Agent execution logs).
Different Agents may have slight differences in directory names and environment variable names for Skills; refer to the SkillHub page and the unpacked SKILL.md for specifics. This article does not list configuration items that have not been verified on the page.
Typical Usage¶
The official details page could not be retrieved for step-by-step examples this time. Below is the expected workflow organized based on the Skill introduction. Actual commands and parameters should be based on the SKILL.md after installation.
- Prepare Input: Place the scanned mathematical PDF to be converted in a path accessible by the Agent, or upload/specify the file as required by SKILL.md.
- Trigger Skill: State the requirement in the conversation, such as converting a specific PDF to an editable Word document while preserving formulas and tables; and reference the installed “Math Formula PDF to Editable Word Format” Skill (name subject to SkillHub display).
- Parsing Phase (MinerU): The Agent invokes MinerU according to the Skill to perform layout analysis on the PDF; scanned files will undergo OCR, and formulas will usually be recognized as a representation suitable for further processing (such as LaTeX or other intermediate forms, depending on MinerU output).
- Conversion and Generation (Pandoc + python-docx): Generate a
.docxbased on the intermediate results, writing formulas into OMML and tables into Word table structures; use python-docx to fine-tune paragraphs or styles if necessary. - Acceptance: Open the output file in Microsoft Word or a suite compatible with OMML to check if formulas are editable, tables are aligned, and pagination is reasonable; if issues exist, feed back the sample pages to the Agent and iterate according to the troubleshooting suggestions in SKILL.md.
If you already have experience with MinerU, you can understand this Skill as a solidification of “Math Scanned PDF → Structured Intermediate Draft → docx with OMML” into a script that the Agent can execute repeatedly, rather than writing scripts from scratch every time.
Applicable Scenarios and Notes¶
More Suitable For
- Need to obtain editable Word lecture notes, exercises, or appendices from scanned PDFs.
- Documents primarily consisting of mathematical formulas and tables, where you wish to continue editing formulas in Word rather than retouching images.
- Willingness to install MinerU, Pandoc, and the Python ecosystem in a local or designated environment, and to accept the time consumption of multi-step conversion.
Limitations and Notes
- Environment Dependency: If any of the three dependencies are not installed or have version mismatches, conversion may fail or downgrade to pure text/images; check SKILL.md and MinerU official requirements (GPU/CPU, OCR language, etc.) before installation.
- Scan Quality: Blurry, skewed, or heavily handwritten pages affect OCR and formula recognition; output still requires manual proofreading.
- Formula Complexity: For extremely complex formulas, special symbols, or mixed text-formula-image layouts, the restoration degree of OMML depends on MinerU recognition and subsequent conversion rules; it cannot be equated with “pixel-level consistency with the original PDF.”
- Official Information Access: If the SkillHub page shows the skill is offline or the API is unavailable, contact the publisher or switch to a similar office-efficiency skill on SkillHub; download counts and ratings are for selection reference only and do not represent the quality of a single conversion.
Conclusion¶
“Math Formula PDF to Editable Word Format” converges the task of converting scanned mathematical PDFs to Word while preserving OMML formulas and table structures into an Agent-executable Skill, explicitly relying on MinerU, Pandoc, and python-docx. If you frequently process such documents, it is worth checking the instructions on SkillHub and installing it into your commonly used Agent to run a sample PDF.
Official Address: https://api.skillhub.cn/user_1627842f/pdf-toord