Chuyển đến nội dung

PDF sang ảnh

Dựng mỗi trang thành một ảnh JPG, PNG hoặc WebP.

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ì

Each page is redrawn as a grid of pixels at the resolution you choose and saved as a JPG, PNG or WebP. Because the page is rendered rather than exported, what you get is a picture of the page: text stops being text, and nothing in the image can be selected, searched or edited afterwards.

Reach for it when something needs a picture rather than a document: a page to drop into a slide, a diagram for a chat app that will not preview a PDF, or a proof for a print shop that asked for images at 300 dpi.

Cách hoạt động

  1. Drop the PDF onto this page. One file at a time, up to 300 MB.
  2. Pick the format. JPEG suits scans and photographs, PNG suits text, diagrams and flat colour.
  3. Set the resolution. 150 dpi is comfortable on a screen and 300 dpi is what a printer wants.
  4. Give a page range if you only want part of the document, or leave it empty for every page.
  5. Under advanced options, switch to grayscale or ask for a transparent background.
  6. Press Convert to images. Each page arrives as its own file, and a ZIP is offered when there is more than one.

Resolution is the one decision here that really costs something. Doubling the DPI quadruples the pixel count: an A4 page at 150 dpi is about 2 megapixels, the same page at 600 dpi about 35. So each page is held to a ceiling of 40 megapixels and the scale is stepped down until it fits, and the result reports the resolution actually used - a request for 600 dpi that came back as 410 explains itself rather than turning up later as a soft print.

The three formats fail in different directions. JPEG is lossy and compresses photographic scans far better than anything else, but it smears the edges of small text; the quality slider runs from 40 to 100 and sits at 90, near the point where more quality mostly buys more bytes. PNG is lossless and keeps text and line art crisp, often at several times the size. WebP beats both at a similar quality, at the cost of older software that refuses to open it.

The conversion is one-way. Nothing in the image knows it was ever text, so a converted page cannot be searched or copied from, and running the images back through Image to PDF gives you a document of pictures rather than the file you started with. If you want the words, use PDF to text; if the problem is only that the file is too big to send, Compress PDF keeps the text alive in it.

Rendering happens on an OffscreenCanvas in a Web Worker, using the same PDF.js engine your browser uses to preview a PDF. Nothing is uploaded at any size, and once this page has loaded the tool keeps working with the network off. Files are numbered with leading zeros sized to the page count, so a 120-page document produces 001 through 120 and sorts correctly everywhere.

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

  • The output is pixels. Text inside the images cannot be selected, searched or edited, and no reader will find a word in them.
  • Very large pages are rendered below the resolution you asked for, because each page is held to a 40-megapixel ceiling. The result shows the resolution actually used.

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

Bạn nên chọn DPI nào?
150 dpi cho những gì đọc trên màn hình, 300 dpi cho những gì đem in, và 72 dpi khi ảnh cần khớp đúng kích thước mà trang được định nghĩa. Cao hơn không tự nhiên là tốt hơn: tăng gấp đôi con số làm dung lượng tệp gấp bốn, và quá 300 dpi thì phần chi tiết thêm thường không thấy được, trừ khi bản gốc là một bản quét độ phân giải cao.
JPG, PNG hay WebP - chọn loại nào?
JPG cho bản quét và ảnh chụp, ở đó nó nhỏ hơn nhiều và phần mất mát khó thấy. PNG cho chữ, sơ đồ và ảnh chụp màn hình, ở đó nén có mất mát làm nhoè mép các chữ nhỏ. WebP khi bạn kiểm soát được thứ sẽ mở tệp và muốn nó nhỏ hơn cả hai loại kia.
Bạn chỉ chuyển một số trang được không?
Được. Gõ một khoảng như 1-4, hoặc 2, 5, 9-, hoặc các từ odd, even và last; để trống để lấy mọi trang. Mỗi trang thành một ảnh riêng, và khi có nhiều hơn một trang bạn có thể lấy tất cả trong một tệp ZIP.
Bạn có thể lấy ảnh với nền trong suốt không?
Chọn PNG và đặt nền thành trong suốt trong phần tuỳ chọn nâng cao. Tuỳ chọn này không có với JPEG, vốn hoàn toàn không có kênh alpha. Lưu ý rằng một trang tự vẽ hình chữ nhật trắng của riêng nó - nhiều trang làm vậy - vẫn cho ra màu trắng, vì hình chữ nhật đó là nội dung của trang chứ không phải phần nền phía sau.
PDF của bạn có bị tải lên đâu đó không?
Không. Các trang được dựng trong một Web Worker và ảnh không bao giờ rời khỏi thiết bị. Bạn có thể tự kiểm tra thay vì phải tin: mở công cụ dành cho nhà phát triển, chuyển sang thẻ mạng, và chuyển một tệp. Không có gì được gửi đi, và công cụ vẫn hoạt động khi tắt kết nối.

Công cụ liên quan