MDocKit

Markdown to PDFMarkdown 转 PDF

Convert Markdown or HTML into a paginated A4 PDF you can download — all rendering happens locally.

把 Markdown 或 HTML 转成分页 A4 PDF 并下载,渲染全过程都在本地完成。

What is Markdown to PDF?Markdown 转 PDF 是什么?

A Markdown-to-PDF converter that produces a real paginated A4 document rather than a long screenshot. The page is laid out, captured at double scale for crisp output, and split across A4 pages with proper margins; tables and code blocks are preserved. Both Markdown and raw HTML inputs are accepted, so a styled HTML snippet converts just as well.

一个把 Markdown 转成真正分页 A4 文档、而不是一张超长截图的转换器。页面先排版,再以两倍分辨率捕获,最后按 A4 页高切分并保留页边距,表格与代码块都会保留。Markdown 与原始 HTML 都能输入,带样式的 HTML 片段同样适用。

How to use markdown to pdf如何使用 Markdown 转 PDF

  1. Paste Markdown or HTML into the input box.
  2. Press Generate PDF and wait for the pages to be built.
  3. Press Download PDF to save the file.
  4. Adjust your source and regenerate if the layout needs tweaks.
  1. 把 Markdown 或 HTML 粘进输入框。
  2. 点"生成 PDF",等待页面构建完成。
  3. 点"下载 PDF"保存文件。
  4. 版式需要微调时改源码重新生成。

Common uses常见用途

FAQ常见问题

How is the text kept selectable?文字能选中吗?

The document is rendered into a canvas at double scale, so the PDF is a high-resolution image. That guarantees identical layout everywhere, at the cost of selectable text — for selectable output, print to PDF from your browser instead.

文档以两倍分辨率渲染到画布再嵌入 PDF,因此是高清图片。好处是任何设备上版式完全一致,代价是文字不可选中——若需要可选择的文本,请用浏览器自带的"打印为 PDF"。

How are long documents split?长文档怎么分页?

The rendered height is divided by the A4 page height and the remainder is carried onto the next page, so long documents become multi-page PDFs instead of one squeezed image.

渲染高度除以 A4 页高,余量带到下一页,因此长文档会变成多页 PDF,而不是被压扁的一张图。

Can I convert HTML directly?能直接转 HTML 吗?

Yes. If the input starts with a tag it is treated as HTML and rendered as-is; otherwise it is parsed as Markdown first.

可以。输入以标签开头时按 HTML 原样渲染,否则先按 Markdown 解析。

Is my content uploaded?内容会上传吗?

No. Rendering and PDF assembly happen locally in the browser.

不会。渲染与 PDF 组装都在浏览器本地完成。

Other tools其他工具

👁️

Markdown PreviewMarkdown 预览

Write Markdown on the left, see the rendered result with syntax-…

左边写 Markdown,右边看渲染结果,代码块自动高亮,并可一键生成标题目录。…

📘

Word Document PreviewWord 文档预览

Open a .docx file straight in the browser with page breaks, head…

直接在浏览器里打开 .docx 文件,保留分页、页眉页脚与表格排版。…

🔄

HTML to MarkdownHTML 转 Markdown

Convert any HTML snippet into clean, readable Markdown with ATX …

把任意 HTML 片段转成整洁的 Markdown,标题用 ATX 语法、代码块…

Sister sites友情链接 MonkeyDev dev tools hub工具总站 FreePDFKit PDF toolsPDF 工具集 ImageToolKit image tools图片工具集 AI 咒语库 AI prompt libraryAI 提示词库 DevTools developer toolkit开发工具箱 CalcKit finance calculators财务计算器 OfficeKit office utilities办公工具箱 AIkit AI & machine learningAI 与机器学习 DataKit data & spreadsheet tools数据与表格工具 ChartKit diagrams & charts图表与可视化