嘉Jaykou工具台 · 文本转PDF 在你的浏览器中制作
每日 免费 3 次

文本转 PDF 转换器将纯文本和 Markdown 转换为干净的 PDF。

输入、粘贴或拖拽文本、Markdown、日志或代码,并在过程中查看页面。
选择页面大小、字体、边距、栏、页眉和页脚,然后下载带有可选择文本的 PDF。

100% 本地处理游客每日 3 次 · 无水印注册送 20 积分
游客每日 3 次 无需上传 无水印

粘贴文本或选择 .txt 文件

支持拖入 .txt / .csv / 任意纯文本

或点击选择文件

0 字符载入示例
文本 → PDF
把纯文本按字号、边距、行距排版成 PDF,超长自动分页。
字号
页边距
字体
纸张
行距
输出:—
中文经 Canvas 逐行贴图渲染,pdf-lib 无需内置中文字体。
Your text and files stay on your device. Nothing is uploaded.
使用说明

文本转PDF怎么用?4 步就能上手

这是一个把 文本 转成 PDF 的在线工具:文件不会离开你的设备,转换直接在浏览器里完成。 将文本、Markdown、日志和代码免费转换为 PDF。

1
导入 文本 文件

点击虚线区域选择文件,或直接把 文本 拖进页面。支持一次拖入多个文件,逐个排队处理。

2
确认输出为 PDF

在下方的格式选项中确认目标格式为 PDF,并按需要调整画质、尺寸、码率或帧率等参数。

3
开始转换

点击转换按钮后,进度条会实时显示处理进度。文件较大时请保持页面打开,不要切换标签页。

4
预览并下载

转换完成后先预览效果,满意再点击下载把 PDF 保存到本地;不满意可以改参数重转。

· 所有处理都在你的设备上完成,文件不会上传到任何服务器。· 如果输出的 PDF 体积偏大,可降低分辨率或画质后重试。

Everything a text document needs

Markdown that looks right

Headings, bold and italic, nested lists, task lists, quotes, tables, code blocks, horizontal rules, footnotes and pictures.

Plain text as typed

Line breaks and indentation are kept, long lines wrap under their indentation and tabs line up. Choose a monospace font for logs and code.

Real text, not pictures

Latin, Greek and Cyrillic text is embedded with fonts, so you can select, copy and search it. Links stay clickable.

Bookmarks from headings

Every Markdown heading becomes a bookmark in the PDF's sidebar, and links to headings jump to them.

Page layout

A4, Letter, A5, Legal, A3 or a custom size, portrait or landscape, margins, one to three columns, text and page colours.

Several files at once

Drop many files: get one PDF with each file starting on a new page under its name, or a ZIP with one PDF per file.

Tips

Page numbers

Write {page} and {pages} in the header or footer, for example Page {page} of {pages}.

Page breaks

In Markdown, a line with \newpage or <!-- pagebreak --> starts a new page.

Code listings

Use Plain text with the Monospace font for source code and logs: indentation and alignment are kept exactly.

Other alphabets

Chinese, Japanese, Korean, Arabic, Hebrew, Hindi, Thai and emoji are drawn as sharp pictures, so they print correctly but can't be selected.

嘉Jaykou工具台

这些也在你的浏览器里完成

无需注册即可试用,游客每日 3 次免费。所有处理都在你的设备上完成,文件不会被上传。

  • 490 个免费工具
  • 图片 · 视频 · PDF · 文本
  • 每日免费额度

所有工具每天都有免费额度。 游客每日 3 次免费,注册再送 20 积分。文件不上传,处理全在你的设备上完成。

文本转 PDF 常见问题解答

这个文本转PDF的转换器是免费的吗?

是的。您可以随意转换文本,无需账户、无每日限制且无水印。

我的文本会被上传吗?

不。PDF 是在你的浏览器中生成的,你的文本永远不会离开你的设备。

我如何将 Markdown 转换为 PDF?

粘贴你的 Markdown 或者拖放一个 .md 文件并选择 Markdown。标题、列表、表格、代码块和链接都会被格式化,标题会变成书签。

我可以选择并复制PDF中的文本吗?

是的,对于拉丁字母、希腊字母和西里尔字母,它们是嵌入了真实字体的。其他字母表的文字和表情符号则是以图片形式绘制的,无法被选中。

我可以将 .txt 文件转换为 PDF 吗?

是的。将其拖到页面上或使用“添加文件”。UTF-8、UTF-16 和 Windows-1252 文件可以被正确读取。

我可以将几个文本文件合并成一个 PDF 吗?

是的。添加多个文件并选择“一个 PDF”:每个文件从新的一页开始,其名称作为标题。或者选择“每个文件一个 PDF”以获得一个 ZIP。

Markdown 中包含图片吗?

使用“插入图片”插入的图片会被插入。从网页链接的图片不会被下载;取而代之的是显示它们的描述。

它能在 Markdown 中运行 HTML 吗?

不。HTML 标签会被移除,只保留其中的文本。

免费工具

将纯文本和 Markdown 转换为干净的 PDF

免费额度、隐私优先,处理全在你的设备上完成。

文本转PDF