修復損壞的 PDF

修復損壞的 PDF

我已經看過:

我在 OS X 和 Windows 上都嘗試過 Ghostscript。 OS Xgs出現以下錯誤:

GPL Ghostscript 9.06 (2012-08-08) Copyright (C) 2012 Artifex Software, Inc.  All rights reserved. 
This software comes with NO WARRANTY: see the file PUBLIC for details. 

Error: /undefined in  600Ru600D0Fl0Ol2Al7Hl0Sl1Xl8c1E0x0Y0t5760x7680Y0M 
Operand stack:
Execution stack:   
%interp_exit   .runexec2   --nostringval--  --nostringval--   --nostringval--   2   
%stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   
%stopped_push   1894   1   3   
%oparray_pop   1893   1   3   
%oparray_pop   1877   1   3   
%oparray_pop   1771   1   3   
%oparray_pop   --nostringval--   
%errorexec_pop   .runexec2  --nostringval--   --nostringval--   --nostringval--   2   
%stopped_push   --nostringval-- 
Dictionary stack:   
--dict:1161/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)-- 
Current allocation mode is local Current file position is 677 
GPL Ghostscript 9.06: Unrecoverable error, exit code 1

Acrobat Reader 和 pro 都不會載入該檔案。我也在Windows端嘗試過“Recovery Toolbox for PDF”,但沒有任何愛。

有任何想法嗎?我是否在修改 Ghostscript 命令列?這是我嘗試過的兩個命令:

gs -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress corrupt.pdf

gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -sOutputFile=repaired.pdf corrupt.pdf

答案1

某些 PDF 檔案無法修復。 Adobe 投入了大量資源來確保 Adob​​e Reader 和 Acrobat 可以顯示格式錯誤的 PDF 文件,因此如果 Acrobat 無法載入 PDF,則很可能無法復原。

如果您收到錯誤訊息:

Reader 無法開啟 filename,因為它不是受支援的檔案類型,或因為檔案已損壞(例如,它會作為電子郵件附件發送且未正確解碼)。

然後,PDF 已被破壞,並且在文件的前 1024 位元組內無法找到 %PDF 標頭(例如,在文字編輯器中查看時,通常位於文件最頂部的 %PDF-1.6)。

以下是 Adob​​e 提供的更多資訊:

錯誤:“文檔已損壞...”|開啟 PDF

相關內容