Chuyển đến nội dung

EPUB sang PDF

Chuyển một cuốn e-book sang PDF, tự chọn khổ trang quyết định cách chia trang.

Xử lý trên thiết bị của bạn

Công cụ này chạy hoàn toàn trong trình duyệt của bạn. Tệp của bạn không bao giờ được tải lên, và bạn có thể tự kiểm chứng điều đó trong tab mạng của trình duyệt. Tự kiểm chứng: mở tab mạng của trình duyệt và theo dõi. Bạn sẽ thấy một yêu cầu nhỏ hỏi xem bạn còn tác vụ nào không - một tên công cụ và một mã băm, không bao giờ là tệp.

Công cụ này làm gì

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.

Cách hoạt động

  1. Drop the .epub onto this page. One book at a time, up to 200 MB.
  2. 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.
  3. Set the type size between 8 and 16 points. Together with the page size and margins, this is what fixes the page count.
  4. 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.
  5. 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.

Công cụ này không làm được gì

  • 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.

Câu hỏi thường gặp

Sách của bạn không chuyển được. Có phải do DRM không?
Gần như chắc chắn là vậy. Một tệp EPUB được bảo vệ bằng DRM mở ra như một tệp zip hợp lệ nhưng các chương của nó được mã hoá, nên quá trình chuyển đổi không tìm thấy nội dung đọc được và báo cho bạn biết điều đó. Công cụ này không gỡ DRM và sẽ không làm vậy. Sách do bạn viết, sách tải từ nhà xuất bản không có bảo vệ, và các bản xuất từ thư viện không có DRM đều chuyển được bình thường.
PDF sẽ có bao nhiêu trang?
Điều đó hoàn toàn phụ thuộc vào những gì bạn chọn ở đây, vì bản thân EPUB không có số trang riêng. Khổ trang, cỡ chữ và lề cùng nhau quyết định điều đó. Nói ước chừng, A5 ở cỡ 11 pt cho ra gần bằng một cuốn bìa mềm in ra, còn chuyển sang A4 cùng cỡ chữ sẽ giảm số trang đáng kể mà làm mỗi dòng dài hơn.
Bạn nên chọn khổ trang nào?
A5 để đọc, dù trên giấy hay trên điện thoại, vì độ dài dòng gần bằng một cuốn bìa mềm và đó là mức thoải mái để đọc lâu. A4 hoặc Letter nếu sẽ in trên giấy văn phòng thông thường hoặc đóng chung với tài liệu khác. Khổ lớn hơn cho dòng dài hơn, nên hãy tăng cỡ chữ kèm theo kẻo chữ đọc mỏi mắt.
Các hình minh hoạ có được giữ lại không?
Hình ảnh nhúng trong sách được đưa vào mạch nội dung và đặt theo đúng kích thước ghi trong tệp, không bị mã hoá lại trên đường đi. Một bức ảnh dùng nhiều lần trong sách chỉ được lưu một bản trong PDF chứ không lặp lại, điều này giúp một cuốn sách nhiều minh hoạ không phình to hơn mức cần thiết. Ngoại lệ là phần đồ hoạ vốn phải nằm ở một vị trí nhất định trên trang có bố cục cố định, vì bố cục ở đây dựa trên mạch trôi.
Cuốn sách có bị tải lên đâu đó không?
Không. Tệp EPUB được giải nén, phần XHTML của nó được phân tích và tệp PDF được tạo hoàn toàn trong một Web Worker bên trong trình duyệt của bạn. Không có gì về cuốn sách, kể cả tựa đề, rời khỏi thiết bị của bạn. Thứ duy nhất mà trang này tải về là phông Noto từ chính máy chủ của trang, và một khi đã lưu vào bộ nhớ đệm thì việc chuyển đổi chạy được mà không cần kết nối nào cả.

Công cụ liên quan