设计与多媒体

Doc2Markdown

试用

将受支持的文档转为 Markdown,方便智能代理读取,并在源文件旁保存单个文件或转换包。

它能做什么

Doc2Markdown 可将受支持的文档转换为 Markdown,并将结果保存到源文件所在目录。`--md` 模式下载单个合并的 MD 文件,不包含图片;默认模式下载 ZIP 包并解压到源文件旁的 `{doc_id}_{filename}/`,包含图片,表格以 HTML 格式呈现。转换最多轮询 60 秒,超时后返回文档 ID 供后续 `check` 使用;文件会上传到 docchain 云服务并通过 HTTPS 传输。无需 API Key、账号或外部依赖。文档不应包含敏感或机密信息,除非已核实服务的数据处理方式。

什么时候用它

  • 读取或分析 PDF、Office 文档
  • 将文档导出为单个 Markdown 文件
  • 在转换包中保留图片和表格
  • 转换超过 60 秒后继续轮询下载

技能文档

doc2markdown

Document conversion assistant that automatically converts documents to Markdown (MD), saving output to the same directory as the source file. Designed to help intelligent agents read and process document content in various formats.

Quick Start

# Convert document (auto-polls for 60s, downloads if complete, returns doc ID if timeout)
node scripts/doc2markdown.js convert      # Downloads MD package
node scripts/doc2markdown.js convert  --md  # Downloads single MD file

# Check status and download (for documents that exceeded timeout)
node scripts/doc2markdown.js check       # Downloads MD package
node scripts/doc2markdown.js check   --md  # Downloads single MD file

Capabilities

  • Supported formats: docx, doc, pdf, ppt, pptx, xls, xlsx, jpg, jpeg, png, ceb, teb, caj, odt, ofd, cebx, odp, ott, wps, ods, et, dps, epub, chm, sdc, sdd, sdw, mobi, etc.
  • Preserves document structure, tables, and images
  • No API Key or account required, zero external dependencies
  • Downloaded ZIP files are extracted to {doc_id}_{filename}/ under the source file's parent directory; single MD files are saved directly there

When to Use

  • User requests to "read", "extract", "convert", or "view" a document
  • User provides a document path and asks about its content
  • User needs to summarize or analyze a document
  • User needs to convert document content to Markdown package

Download Modes

This tool supports two download modes:

  • --md mode: Downloads a single merged MD file to the source file's parent directory. Images are not included
  • MD package: Downloads and extracts a ZIP package to {doc_id}_{filename}/ in the source file's parent directory. Includes image files and tables, tables are rendered in HTML format

Choosing the Right Mode

User IntentExample PhrasesMode to Use
Read / view / analyze a document"read this file", "what's in this doc", "summarize this PDF"--md (single MD file)
Explicitly convert to MD"convert to MD", "export as markdown", "转成MD"MD package (default, no --md); use --md only if user specifically asks for a single file

Workflow

convert — Convert Document

  1. Invoke file parsing service
  2. Auto-poll conversion status (up to 60 seconds)
  3. Completes within 60s → Auto-download to source file directory
  4. Exceeds 60s → Return doc ID for subsequent check query

check — Query and Download

  1. Provide the previously returned doc ID
  2. Download if complete, otherwise continue polling for 60 seconds
  3. Prompt to retry later if still not complete

Data & Privacy

  • convert uploads files to the docchain cloud service (lab.hjcloud.com) for parsing. Results are returned as a ZIP archive and extracted locally.
  • All transfers use HTTPS encryption.
  • Users should ensure that documents do not contain sensitive or confidential information unless they have verified the service's data handling practices.
  • Service endpoint: https://lab.hjcloud.com/llmdoc

Feedback & Support

For parsing errors, format issues, or other problems, please submit an issue on GitHub: https://github.com/wct-lab/docchain-skills

常见问题

支持哪些文件格式?
文档列出 docx、doc、pdf、ppt、pptx、xls、xlsx、jpg、jpeg、png、ceb、teb、caj、odt、ofd、cebx、odp、ott、wps、ods、et、dps、epub、chm、sdc、sdd、sdw 和 mobi,以及以“等”表示的其他格式。
转换结果保存在哪里?
`--md` 模式在源文件父目录直接保存单个合并 MD 文件;默认模式在该目录下载并解压 ZIP 包到 `{doc_id}_{filename}/`。转换包包含图片,表格用 HTML 呈现;单文件模式不含图片。
转换超过 60 秒怎么办?
`convert` 最多轮询 60 秒;仍未完成时返回文档 ID。之后用 `check` 再次轮询 60 秒,若仍未完成则提示稍后重试。

相关技能

doc to video, word to video, markdown to video, document to video — parse the document, outline, storyboard, voiceover, build, validate. Use when the user gives a Doc / Word / Markdown file and wants an explainer, report broadcast, or training video.

Convert Word (.doc, .docx), PowerPoint (.ppt, .pptx), Excel (.xls, .xlsx), OpenDocument (.odt, .ods, .odp), RTF, EPUB, CSV, and PDF files to GitHub-Flavored Markdown. Use when a task needs the contents of an office document, spreadsheet, presentation, ebook, or PDF you cannot read directly.

1 次安装

Converts PDF, DOCX, XLSX, PPTX, HTML, CSV, and other files to Markdown using the @covoyage/file2md CLI (@covoyage/file2md). Use when the user needs office do...

1 次安装

Convert Markdown files to formatted Word documents (.docx). Use when the user asks to convert, export, or save a Markdown file as Word/DOCX format. Triggers...

24 次安装1 星标

Transform Markdown or outlines into polished Word/PDF documents with professional templates

6 次安装1 星标

Convert a Markdown file or raw Markdown string into a polished Word DOCX document. Supports custom Word template files, includes built-in DOCX templates, and...

23 次安装1 星标