小编j.d*_*doe的帖子

如何修复损坏的 PDF?

我在 Apple Books 中有一本来自 iPad 上本地文件的书 (PDF)。我在 PDF 上做了两个月的笔记。

今天我无法打开它并收到错误:

“无法打开文档。无法打开 ''”

所以我将文件空投到 Mac 上,尝试在 Preview、Adobe 和 Acrobat 中打开它。我在任何地方尝试过该文件,但都无法打开该文件。它可能已损坏或损坏。

我尝试使用Ghostscript( gs)修复它,但没有成功:

gs \
 -o repaired.pdf \
 -sDEVICE=pdfwrite \
 -dPDFSETTINGS=/prepress \
  corrupted.pdf
Run Code Online (Sandbox Code Playgroud)

我收到一个错误:

Catalog dictionary not located in file, unable to proceed


**** Error: Couldn't initialise file.
               Output may be incorrect.



No pages will be processed (FirstPage > LastPage).

The following errors were encountered at least once while processing this file:
    startxref offset invalid
    xref table was repaired

   **** This …
Run Code Online (Sandbox Code Playgroud)

pdf ghostscript

5
推荐指数
1
解决办法
235
查看次数

标签 统计

ghostscript ×1

pdf ×1