📄 TXT 转 PDF(纯文本转 PDF)TXT to PDF Converter
把 TXT 文本或粘贴的文字排版成 PDF:自动识别 UTF-8/GBK/Big5 编码,中文自动嵌入字体,可设字号、行距、页边距、纸张方向,支持行号、页眉文件名和页码,中英文自动换行,换页符分页,本地生成。Typeset a TXT file or pasted text into a PDF — UTF-8/GBK/Big5 detected automatically, CJK font embedded when needed, adjustable font size, line spacing, margins and orientation, optional line numbers, filename header and page numbers, proper wrapping for Chinese and English, form-feed page breaks. Generated locally.
使用说明与常见问题How-to & FAQ
「TXT 转 PDF(纯文本转 PDF)」是什么?What is the TXT to PDF Converter tool?
把 TXT 文本或粘贴的文字排版成 PDF:自动识别 UTF-8/GBK/Big5 编码,中文自动嵌入字体,可设字号、行距、页边距、纸张方向,支持行号、页眉文件名和页码,中英文自动换行,换页符分页,本地生成。Typeset a TXT file or pasted text into a PDF — UTF-8/GBK/Big5 detected automatically, CJK font embedded when needed, adjustable font size, line spacing, margins and orientation, optional line numbers, filename header and page numbers, proper wrapping for Chinese and English, form-feed page breaks. Generated locally.
如何使用「TXT 转 PDF(纯文本转 PDF)」?How do I use the TXT to PDF Converter tool?
在「TXT 转 PDF(纯文本转 PDF)」中,按需设置「文件编码」、「纸张」、「方向」、「英文字体」、「字号 (pt)」等选项,然后点击「生成 PDF」按钮即可。支持拖放文件。In the TXT to PDF Converter: Set "File encoding", "Paper", "Orientation", "Latin font", "Font size (pt)", then click "Create PDF". Drag-and-drop files is supported.
中文文件打开是乱码怎么办?What if Chinese text comes out garbled?
工具会自动识别 UTF-8(含 BOM)、UTF-16 和 GBK/GB18030、Big5 编码;极少数情况下识别错误,可以在“文件编码”里手动选择正确的编码,文本框会立即刷新。The tool auto-detects UTF-8 (with or without BOM), UTF-16, GBK/GB18030 and Big5. If detection is ever wrong, pick the right one under File encoding and the text box refreshes immediately.
为什么有些字符变成了问号?Why did some characters become question marks?
纯英文/西欧文字使用 PDF 内置字体;含中文时自动嵌入思源黑体(Noto Sans SC)子集,覆盖 GB2312 和 Big5 的全部常用汉字以及日文假名、拉丁字母。表情符号和少数生僻字不在字库中,会显示为“?”,生成后会提示数量。PDF 只嵌入用到的字形,文件不会太大。Plain English/Western text uses the PDF built-in fonts. Text with Chinese embeds a subset of Noto Sans SC covering all common GB2312 and Big5 characters plus kana and Latin. Emoji and a few rare characters are not in the font and appear as "?" — you'll be told how many. Only the glyphs used are embedded, so files stay small.
长行和中英文混排怎么换行?How are long lines and mixed Chinese/English wrapped?
英文按单词换行,过长的单词(如网址)会在字符间断开;中文可在任意字之间换行,并避免句号、逗号等标点出现在行首。原文中的空行、缩进和 Tab(按设定宽度展开)都会保留,换页符(\f)会开始新的一页。English wraps at word boundaries, with overly long words such as URLs broken between characters. Chinese can break between any two characters, and closing punctuation such as full stops and commas is kept off the start of a line. Blank lines, indentation and tabs (expanded to the chosen width) are preserved, and a form feed (\f) starts a new page.
等宽字体对中文有效吗?Does the monospace option apply to Chinese?
“英文字体”只在全文都是英文/西欧字符时生效(使用 PDF 内置的 Helvetica、Times 或 Courier)。只要文中含有中文,整篇会用思源黑体排版,该字体不是等宽字体,所以代码对齐可能略有偏差。The Latin font choice applies only when the whole text is English/Western (using the PDF built-in Helvetica, Times or Courier). As soon as the text contains Chinese, it is set in Noto Sans SC, which is not monospaced, so code alignment may shift slightly.
文件会上传吗?Is my file uploaded?
不会。读取、排版和生成 PDF 都在浏览器里完成,内容不会离开你的设备。No. Reading, layout and PDF creation all happen in your browser; the content never leaves your device.
「TXT 转 PDF(纯文本转 PDF)」免费吗?需要注册吗?Is the TXT to PDF Converter free? Do I need an account?
「TXT 转 PDF(纯文本转 PDF)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The TXT to PDF 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.