Ⓜ️ PDF 转 MarkdownPDF to Markdown Converter
把 PDF 的文字层转换成 Markdown:按字号识别一、二级标题,识别项目符号和编号列表,把对齐的多列行转换成表格,并转义 Markdown 特殊字符;可加分页标记、预览渲染效果、复制或下载 .md。文件在浏览器本地处理,不上传。Convert a PDF's text layer to Markdown: headings detected from font size (levels 1 and 2), bulleted and numbered lists, aligned multi-column rows turned into tables, and Markdown special characters escaped. Add optional page markers, preview the rendered result, then copy or download the .md file. Processed locally in your browser — no upload.
使用说明与常见问题How-to & FAQ
「PDF 转 Markdown」是什么?What is the PDF to Markdown Converter tool?
把 PDF 的文字层转换成 Markdown:按字号识别一、二级标题,识别项目符号和编号列表,把对齐的多列行转换成表格,并转义 Markdown 特殊字符;可加分页标记、预览渲染效果、复制或下载 .md。文件在浏览器本地处理,不上传。Convert a PDF's text layer to Markdown: headings detected from font size (levels 1 and 2), bulleted and numbered lists, aligned multi-column rows turned into tables, and Markdown special characters escaped. Add optional page markers, preview the rendered result, then copy or download the .md file. Processed locally in your browser — no upload.
如何使用「PDF 转 Markdown」?How do I use the PDF to Markdown Converter tool?
在「PDF 转 Markdown」中,选择或拖入文件,按需设置「分页标记」、「页码(留空为全部)」等选项,然后点击「转换为 Markdown」、「复制」、「下载 .md」、「预览」按钮即可。加密的 PDF 选好后会先出现「打开密码」栏和「打开」按钮,输入密码点「打开」后再继续。In the PDF to Markdown Converter: Choose or drop your files, set "Page markers", "Pages (empty = all)", then click "Convert to Markdown", "Copy", "Download .md", "Preview". For an encrypted PDF, a Password field and an Open button appear after you choose it — enter the password and click Open first.
标题是怎么识别的?How are headings detected?
以全文字号的中位数作为正文字号:字号达到正文 1.8 倍的短行转为一级标题(#),达到 1.25 倍的短行转为二级标题(##)。如果文档用加粗而非放大字号表示标题,这些标题会被当作普通段落;也可以关闭“识别标题”,全部按段落输出。The median font size across the document is taken as body text. Short lines at least 1.8× the body size become level-1 headings (#), and at least 1.25× become level-2 (##). Headings marked only by bold rather than a larger size come out as ordinary paragraphs, and you can turn off Detect headings to output everything as paragraphs.
列表和表格能保留吗?Are lists and tables kept?
以 •、-、* 等符号开头的行转为无序列表,以“1.”“1)”或“1、”开头的行转为有序列表。同一行中间距明显分开的多段文字会被视为表格单元格,连续两行以上即输出为 Markdown 表格(第一行作为表头);没有对齐关系的复杂表格可能被拆成普通段落。Lines starting with •, -, * and similar marks become bullet lists, and lines starting with "1.", "1)" or "1、" become numbered lists. Text on one line separated by wide gaps is treated as table cells; two or more such rows in a row become a Markdown table, with the first row as the header. Complex tables without clear alignment may come out as plain paragraphs.
为什么输出里有反斜杠?Why are there backslashes in the output?
PDF 原文中的 *、_、[、]、<、~、反引号和反斜杠,以及行首的 #、>、- 等,在 Markdown 里有特殊含义。工具会在它们前面加反斜杠转义,这样渲染后显示的仍是原来的字符,而不会意外变成粗体、链接或标题。Characters such as *, _, [, ], <, ~, backticks and backslashes, plus #, > or - at the start of a line, have special meaning in Markdown. They are escaped with a backslash so the rendered output shows the original characters instead of accidentally turning into bold text, links or headings.
图片、粗体和链接会转换吗?Are images, bold text and links converted?
不会。本工具只转换 PDF 的文字层,不导出图片,也不保留粗体、斜体、颜色和超链接;需要页面图片时请使用“PDF 转 JPG”或“PDF 转 PNG”工具。No. Only the PDF's text layer is converted: images are not exported, and bold, italics, colours and hyperlinks are not kept. Use the PDF to JPG or PDF to PNG tool if you need page images.
扫描件可以转换吗?Can scanned PDFs be converted?
本工具读取 PDF 自带的文字层,不做 OCR 文字识别。扫描件或纯图片 PDF 没有文字层,会提示“没有找到可提取的文字”;这种情况需要先用 OCR 软件识别。This tool reads the PDF's built-in text layer and does not perform OCR. Scans and image-only PDFs have no text layer, so you'll see "No extractable text found"; run them through OCR software first.
加密的 PDF 可以处理吗?Can it handle password-protected PDFs?
可以。如果 PDF 需要打开密码,会提示你输入;只有权限限制(无打开密码)的文件会自动打开。输出文件不再带密码,如需加密请使用“PDF 加密”工具。Yes. If the PDF needs an open password you'll be asked for it; files with only permission restrictions open automatically. The output is not password-protected — use the Protect PDF tool if needed.
文件会上传到服务器吗?Are my files uploaded?
不会。PDF 在你的浏览器里用 pdf-lib / pdf.js 处理,文件不会离开你的设备,关闭页面后不留存任何数据。No. The PDF is processed in your browser with pdf-lib / pdf.js; files never leave your device and nothing is kept after you close the page.
「PDF 转 Markdown」免费吗?需要注册吗?Is the PDF to Markdown Converter free? Do I need an account?
「PDF 转 Markdown」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The PDF to Markdown Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.