EPUB 转 PDF
把电子书转换为 PDF,由你选择的纸张大小来划分页面。
这款工具完全在你的浏览器中运行。文件从不上传,你可以在浏览器的网络标签中亲自验证这一点。 亲自验证:打开浏览器的网络标签观察。你会看到一个查询你是否还有剩余任务的小请求,只包含工具名称和一段哈希,绝不会包含文件。
这款工具的作用
An EPUB has no pages. It is a zip of XHTML that a reader re-flows to whatever screen it is on, which is why the same book is 300 pages on a phone and 180 on a tablet. Converting one to PDF therefore means creating the pagination rather than reproducing it, and the page size you choose is not cosmetic - it decides what the book becomes. A5 is the default because it is close to a paperback; a novel set on A4 with normal margins gives lines long enough to be genuinely tiring to read.
Use it when the book has to go somewhere an EPUB cannot follow: a reader or a printer that only accepts PDF, a course pack that has to be handed round as a single file, or an annotation app that expects fixed pages to write on.
工作原理
- Drop the .epub onto this page. One book at a time, up to 200 MB.
- Choose the page size. A5 is the default and reads like a paperback; A4 and Letter suit printing; A3 and Legal are there for the unusual cases.
- Set the type size between 8 and 16 points. Together with the page size and margins, this is what fixes the page count.
- Leave chapter breaks on so each chapter starts on a fresh page, and bookmarks from headings on so the outline is built from the book's own headings.
- Press Convert. The PDF downloads on its own once the whole book has been laid out.
The page count is something you create, not something you discover. It is the product of the page size, the type size and the margins, so the same book comes out at very different lengths depending on what you pick. A5 at 11 pt is close to a printed paperback. A4 at 11 pt with normal margins produces long lines and fewer, denser pages, which is fine for reference and tiring for a novel. If the length matters, try one setting, look at the result, and adjust once.
Chapter breaks decide whether the book has structure or just flow. With them on, each chapter starts on a fresh page, which is what you want for anything being printed or bound. Turn them off and the chapters run continuously into one another - a shorter document with no half-empty pages, which suits reading on a screen where nobody is turning anything over.
A fixed-layout EPUB is outside what this conversion can do faithfully. The document model behind every conversion here describes flowing content - paragraphs, headings, lists, tables, images - and has no notion of absolute positioning, so a comic, a children's picture book or a magazine whose text is placed at particular coordinates will convert, but as flowing text rather than as the layout it was. A re-flowable EPUB, which is nearly all of them, converts as intended.
The book's own fonts are not used. Text is set in the embedded Noto set instead, subsetted to the characters the book actually contains. There is a wrinkle worth knowing: the layout asks for a serif, and there is no Noto Serif in that set, so with embedding on the serif borrows the sans faces. Turning embedding off gives you a real Times Roman at the cost of every character outside WinAnsi, which for a book with accented names is usually the worse trade.
DRM is a hard stop, and this tool does not attempt to get past it and will not. A book bought from a shop that applies DRM has its chapters encrypted with a key tied to the reader it was sold for: the container still parses, and the chapters come back empty. When that happens the tool says the book is DRM-protected rather than failing with a parse error that tells you nothing.
这款工具做不到的事
- DRM-protected books cannot be converted. The container parses but the chapters are encrypted, and removing that protection is not something this tool does.
- Fixed-layout EPUBs lose their layout. Comics, picture books and magazines convert as flowing text, because the model behind every conversion here has no absolute positioning.
- Fonts the book ships are not used. Text is set in the embedded Noto faces, which do not cover Chinese, Japanese, Korean, Arabic or Indic scripts.
常见问题
- 我的书无法转换。是 DRM 的问题吗?
- 几乎可以肯定。受 DRM 保护的 EPUB 会作为一个有效的 zip 打开,但它的章节是加密的,所以转换找不到可读内容,并会这样告诉你。这款工具不会移除 DRM,也不打算去做。你自己写的书、从出版商处下载的无保护的书,以及无 DRM 的图书馆导出文件,都能正常转换。
- PDF 会有多少页?
- 这完全取决于你在这里的选择,因为 EPUB 本身没有页数。纸张大小、字号和页边距共同决定它。粗略来说,A5 配 11 点接近一本印刷的平装书,而在同样字号下换成 A4 会大幅减少页数,同时让每一行都变长。
- 我该选哪个纸张大小?
- 用于阅读就选 A5,无论是纸上还是手机上,因为它的行长接近平装书,而长时间阅读在那个行长下才舒适。如果要打印在普通办公纸上、或和其他文档装订在一起,就选 A4 或 Letter。更大的尺寸会带来更长的行,所以用它们时要把字号调大,否则读起来会很累。
- 插图会保留吗?
- 嵌入书中的图像会被带入排版流,并按其标注的大小放置,途中不会重新编码。书中多次使用的同一张图片在 PDF 中只存储一份,而不是重复存储,这能让一本插图书不会超出必要地增大。依赖于固定版式页面上特定位置的图稿是个例外,因为这里的版式是基于流动的。
- 这本书会被上传到什么地方吗?
- 不会。EPUB 的解压、其 XHTML 的解析,以及 PDF 的生成,全部在你浏览器内的 Web Worker 中完成。关于这本书的任何信息,包括它的标题,都不会离开你的设备。这个页面唯一会去获取的东西是来自本站点自己源的 Noto 字体,一旦缓存,转换在完全没有网络连接时也能进行。