Chuyển đến nội dung

Sửa PDF

Dựng lại tệp hỏng để nó mở được trở lại.

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ì

This rebuilds a damaged PDF from whatever is still readable inside it. The cross-reference table - the index that tells a reader where every object lives - is reconstructed by scanning the file, and the result is written out as a clean document. Before you are offered anything, the repaired file is opened again to check it really works, and the report tells you how many pages it had before and how many it has now.

Use it when a reader refuses the file: a download that stopped part way, a file recovered from a failing drive or a memory card, one that came out of a crashed export, or one that opens in a browser but not in Acrobat.

Cách hoạt động

  1. Drop the damaged PDF onto this page. This is the one tool that accepts a file whose header looks wrong, because that is exactly the file it exists for.
  2. Leave Rebuild the cross-reference table on. It is the fix for the large majority of PDFs that will not open.
  3. Leave Recover pages on so that, if the ordinary repair fails, the document can be rebuilt from its pages alone.
  4. Turn on Drop unreadable objects only if the first attempt fails. It sacrifices whatever those objects held in exchange for getting a file at all.
  5. Press Repair, then read the report: it says how many pages were readable before and how many the repaired file contains.

Most files that will not open are not badly damaged. A PDF ends with a table of byte offsets pointing at every object in it, and if that table is wrong - because bytes were added, a transfer truncated, or an editor wrote it incorrectly - a strict reader gives up even though the content is all present. The repair scans the whole file for objects, rebuilds the table from what it finds, and writes a fresh document around it.

There is a second, stronger attempt behind the first. If the ordinary repair cannot complete, the document is rebuilt from its page tree into an empty file, which recovers documents whose catalogue is gone but whose pages survived - the usual shape of an interrupted download. That path copies page content and leaves document-level structures behind, so a file recovered this way may lose its outline, its interactive form and its attachments while keeping every page.

The result is verified before it is offered to you. A repair that produces a file nothing can open has not repaired anything, so the output is read back and its pages counted. The counts before and after are both reported, and a repair that recovered 4 pages of 40 is a very different outcome from one that recovered all 40.

Nothing can be recovered that is not in the file. If a transfer stopped at 60 per cent, the missing 40 per cent is gone and no tool will invent it. Keep the damaged original until you have checked the result, because a second attempt with different options sometimes does better.

The repair runs on your device using qpdf compiled to WebAssembly. That matters more here than elsewhere: a file you cannot open is a file you cannot check, and uploading an unknown document to a stranger's server to find out what is in it is a poor trade.

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

  • Data that is genuinely missing cannot be recovered. A truncated download comes back as the pages that arrived, not as the whole document.
  • An encrypted file cannot be repaired without its password, because its objects cannot be read. Remove the protection with Unlock PDF first.

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

Thực sự thì một PDF không mở được bị lỗi ở đâu?
Thường là bảng tham chiếu chéo, tức là mục lục các vị trí byte ở cuối tệp. Nếu nó không khớp với vị trí thực của các đối tượng, một trình đọc nghiêm ngặt sẽ từ chối tài liệu dù nội dung vẫn nguyên vẹn. Dựng lại bảng đó bằng cách quét toàn bộ tệp sẽ khắc phục phần lớn các trường hợp này.
Sẽ có bao nhiêu trang của tôi được lấy lại?
Bao nhiêu trang còn đọc được thì lấy lại được bấy nhiêu, và kết quả cho bạn biết con số. Nó báo số trang đọc được trước khi sửa - thường là không, vì tệp không mở được - và số trang mà tài liệu đã sửa chứa. Nếu những con số đó không khớp với dự đoán của bạn, thì một phần của tệp đã mất chứ không chỉ đơn thuần bị hỏng.
Việc sửa thất bại. Tôi có thể thử gì khác?
Hãy bật Loại bỏ đối tượng không đọc được và chạy lại: các đối tượng không phân tích được sẽ bị bỏ đi thay vì làm dừng công việc, việc này mất đi những gì chúng chứa nhưng thường tạo ra một tài liệu dùng được. Nếu vẫn thất bại, hãy so kích thước tệp với nguồn gốc - một tệp nhỏ hơn nhiều so với đáng lẽ đã bị cắt cụt khi truyền, và tải lại là cách khắc phục duy nhất.
Tôi có phải tải lên tệp bị hỏng không?
Không, và điều đó có ý nghĩa ở đây. Một tệp bạn không mở được là một tệp bạn không kiểm tra được, nên gửi nó tới một máy chủ lạ để tìm hiểu bên trong có gì là một rủi ro bạn không cần phải chịu. qpdf chạy dưới dạng WebAssembly trong trình duyệt của bạn và không có gì được truyền đi.
Việc sửa có làm thay đổi bản thân các trang không?
Không. Nội dung trang được sao chép nguyên trạng; thứ được dựng lại là cấu trúc quanh nó. Nếu cần đến đường khôi phục mạnh hơn, các tính năng ở cấp tài liệu như mục lục, biểu mẫu tương tác và mọi tệp đính kèm có thể không còn, nhưng các trang được giữ nguyên.

Công cụ liên quan