🕸️ 网页 / HTML 转 PDFWebpage / HTML to PDF
把粘贴的 HTML(或纯文本)排版成 PDF:保留标题、段落、列表、引用、代码块和表格行,自动去掉脚本和样式代码,中文等字符嵌入字体显示;无法显示的字符会提示。本地处理(不能抓取网址)。Lay out pasted HTML (or plain text) as a PDF, keeping headings, paragraphs, lists, quotes, code blocks and table rows, dropping script and style code, and embedding a font for Chinese and other characters; characters that cannot be shown are reported. Processed locally (cannot fetch URLs).
使用说明与常见问题How-to & FAQ
「网页 / HTML 转 PDF」是什么?What is the Webpage / HTML to PDF tool?
把粘贴的 HTML(或纯文本)排版成 PDF:保留标题、段落、列表、引用、代码块和表格行,自动去掉脚本和样式代码,中文等字符嵌入字体显示;无法显示的字符会提示。本地处理(不能抓取网址)。Lay out pasted HTML (or plain text) as a PDF, keeping headings, paragraphs, lists, quotes, code blocks and table rows, dropping script and style code, and embedding a font for Chinese and other characters; characters that cannot be shown are reported. Processed locally (cannot fetch URLs).
如何使用「网页 / HTML 转 PDF」?How do I use the Webpage / HTML to PDF tool?
在「网页 / HTML 转 PDF」中,按需设置「纸张」等选项,然后点击「生成 PDF」按钮即可。In the Webpage / HTML to PDF: Set "Paper", then click "Make PDF".
能打开网址吗?Can it open a URL?
不能。浏览器的跨域限制不允许网页读取其他网站;请在浏览器里打开页面,复制源代码或另存为 HTML 后粘贴进来。No. The browser's cross-origin rules stop a page from reading other sites; open the page, copy its source (or save it as HTML) and paste it here.
哪些内容会保留?What is kept?
保留标题(H1–H6,加粗加大)、段落、有序 / 无序列表(含嵌套缩进)、引用、代码块(等宽)、分隔线和表格行(单元格用 | 分隔),以及图片的替代文字。script、style、noscript、template 标签和隐藏元素的内容不会排进 PDF。排版为简洁的文字版式,不还原 CSS 样式和图片。Headings (H1–H6, bold and larger), paragraphs, ordered / unordered lists (nested lists indented), quotes, code blocks (monospace), horizontal rules and table rows (cells separated by |), plus image alt text. Content of script, style, noscript and template tags and of hidden elements is not laid out. The result is a clean text layout; CSS styling and images are not reproduced.
中文会显示成问号吗?Will Chinese text turn into question marks?
不会。只要内容含中文、日文、韩文或其他非西文字符,就会自动嵌入思源黑体(Noto Sans SC)子集。字体里确实没有的字符(例如部分表情符号)会显示为“?”,并在结果上方列出,不会悄悄丢失。No. When the content contains Chinese, Japanese, Korean or other non-Western characters, a Noto Sans SC subset is embedded automatically. Characters the font really lacks (some emoji, for example) are shown as "?" and listed above the result, never lost silently.
有哪些选项可以调整?What options can I adjust?
「网页 / HTML 转 PDF」的设置:「纸张」可选 A4、Letter(默认 A4)。每次生成结果都按当前设置处理。Settings in the Webpage / HTML to PDF — "Paper": A4, Letter (default A4). The result always uses the current settings.
「网页 / HTML 转 PDF」免费吗?需要注册吗?Is the Webpage / HTML to PDF free? Do I need an account?
「网页 / HTML 转 PDF」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Webpage / HTML to PDF is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.