PDF 转 EPUB
把 PDF 变成能随屏幕重排的电子书。
这款工具完全在你的浏览器中运行。文件从不上传,你可以在浏览器的网络标签中亲自验证这一点。 亲自验证:打开浏览器的网络标签观察。你会看到一个查询你是否还有剩余任务的小请求,只包含工具名称和一段哈希,绝不会包含文件。
这款工具的作用
The reason people want this is specific: a PDF on a phone or an e-reader is close to unreadable. The page is a fixed sheet of A4 and the screen is not, so you either zoom and pan or squint at six-point type. EPUB re-flows to whatever width it is given, and that single property is the whole value of the conversion. It also means the original pagination is discarded - the text is rebuilt as a stream of chapters, paragraphs, headings and lists, not as a copy of the printed page.
Use it for anything long that you intend to read rather than consult: a book or manual that only exists as a PDF, a lengthy report you want to get through on a commute, a thesis, a set of papers going onto a Kobo. It is the wrong tool for anything where the layout is the content - a form, a score, a plan.
工作原理
- Drop the PDF onto this page. It is checked for a text layer, because there is nothing to re-flow in a scan.
- Choose where the chapters come from: bookmarks, detected headings, or page boundaries as a last resort.
- Fill in the title and author if the document's own metadata is wrong or missing - this is what an e-reader shows in its library.
- Under advanced options set the language if the document is not in the language of this page, and narrow the page range to skip front matter you do not want.
- Press Convert to EPUB, then send the file to your reader however you normally do.
Chapter detection is the feature, not a detail, because an e-book without chapter breaks is one long scroll with no table of contents and no way back to where you were. Bookmarks come first: a document's own outline is its author's statement of where the chapters are, and it beats any heuristic. Heading detection is the fallback, promoting short lines set in larger type. Page boundaries are the last resort - not really chapters at all, but at least somewhere to jump to.
Setting the language matters more than it looks. An EPUB carries a language tag, and readers use it to decide how to hyphenate and how a screen reader pronounces the text. Left on automatic, the tag follows the language of this page rather than the language of your document, which is a sensible default and the wrong answer if you are converting a Spanish book on an English interface.
Title and author are worth a moment even though they are optional. Left empty, they are taken from the PDF's own metadata, which is frequently the name of a template someone used in 2011 or the path of a Word file. That is what appears on your reader's shelf, next to a book with no cover.
Everything runs in your browser: the text extraction through PDF.js, the EPUB packaging through a ZIP writer in a Web Worker. No part of the book is uploaded, which is the honest answer to the question people ask about converters that handle copyrighted material.
这款工具做不到的事
- Pagination is discarded by design. Page numbers, running heads, footers and footnote positioning do not survive, because re-flowing text has no fixed pages to attach them to.
- Pictures are not carried across. The EPUB is built from the document's text and structure only, so figures, diagrams and photographs are missing from the result.
- A scan has no text layer and nothing to re-flow, so the conversion stops rather than producing an empty book. Run OCR PDF first.
常见问题
- 到底为什么要把 PDF 转成 EPUB?
- 因为 PDF 的页面尺寸固定,而电子阅读器不是。在六英寸屏上,一张 A4 页面要么小到读不清,要么宽到放不下,于是你整本书都在缩放和平移。EPUB 会重排文字,让设备决定字号,这正是长文档在手机上变得可读的原因。
- 章节是怎么划分的?
- 文档有书签大纲时就从书签划分,因为那是作者对自身结构的陈述。没有大纲时,则从字号检测标题并据此划分。两者都没有时,选“按页边界”会在每页处分割——算不上真正的章节,但至少给阅读器的导航一个落脚点。
- 插图会带过来吗?
- 当前版本不会。EPUB 是从提取的文字及其结构写出的,所以图、图表和照片都会被留下。对插图多的书这是实实在在的损失,如果图片比重排更重要,PDF 转 HTML 的整页图片模式是更好的途径。
- 它能在 Kindle 上用吗?
- 能,经由 Send to Kindle,它接受 EPUB 并在收到时转成亚马逊自己的格式。用 USB 直接把文件拷进设备的 documents 文件夹不行,因为 Kindle 本身不读 EPUB。Kobo、PocketBook、Apple Books 和大多数安卓阅读器都能原样打开。
- 转换时这本书会被上传吗?
- 不会。文字提取和 EPUB 打包都在你的浏览器里进行,所以关于这份文档没有任何东西被传出——这里特别值得一说,因为人们转换的文件往往是自己拥有、不愿交给第三方的书。断网时它也能用。