1 |
Dear all |
2 |
What is your experience with corrupted PDF files? Do you know any tool |
3 |
that can attempt to repair damaged PDF files? Does it make any sense |
4 |
to edit a PDF file in hex mode? |
5 |
|
6 |
I have a damaged PDF that cannot be opened with any of the about 10 |
7 |
tools that I've just tried. |
8 |
liv@liv-laptop:/tmp$ pdf2ps Class\ 1.pdf |
9 |
**** Warning: File has a corrupted %%EOF marker, or garbage after %%EOF. |
10 |
**** Warning: An error occurred while reading an XREF table. |
11 |
**** The file has been damaged. This may have been caused |
12 |
**** by a problem while converting or transfering the file. |
13 |
**** Ghostscript will attempt to recover the data. |
14 |
Error: /typecheck in --run-- |
15 |
Operand stack: |
16 |
--nostringval-- --nostringval-- 1 |
17 |
Execution stack: |
18 |
%interp_exit .runexec2 --nostringval-- --nostringval-- |
19 |
--nostringval-- 2 %stopped_push --nostringval-- |
20 |
--nostringval-- --nostringval-- false 1 %stopped_push 1878 |
21 |
1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 |
22 |
%oparray_pop --nostringval-- --nostringval-- --nostringval-- |
23 |
--nostringval-- --nostringval-- --nostringval-- |
24 |
Dictionary stack: |
25 |
--dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- |
26 |
--dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:288/300(ro)(G)-- |
27 |
--dict:20/25(L)-- --dict:1/10(L)-- |
28 |
Current allocation mode is local |
29 |
GPL Ghostscript 8.71: Unrecoverable error, exit code 1 |
30 |
|
31 |
liv@liv-laptop:/tmp$ pdftops Class\ 1.pdf |
32 |
Error: PDF file is damaged - attempting to reconstruct xref table... |
33 |
Error: Top-level pages object is wrong type (null) |
34 |
Error: Couldn't read page catalog |
35 |
|
36 |
Any ideas how I could try to repair it? (It's not sensitive and it's |
37 |
small, so I could post it.) I tried pdftk, but it also fails. |
38 |
liv@liv-laptop:/tmp$ pdftk Class\ 1.pdf output Class\ 11.pdf |
39 |
java.lang.NullPointerException |
40 |
at com.lowagie.text.pdf.PdfReader$PageRefs.iteratePages(itext-2.1.7.jar.so) |
41 |
at com.lowagie.text.pdf.PdfReader$PageRefs.readPages(itext-2.1.7.jar.so) |
42 |
at com.lowagie.text.pdf.PdfReader$PageRefs.<init>(itext-2.1.7.jar.so) |
43 |
at com.lowagie.text.pdf.PdfReader$PageRefs.<init>(itext-2.1.7.jar.so) |
44 |
at com.lowagie.text.pdf.PdfReader.readPages(itext-2.1.7.jar.so) |
45 |
at com.lowagie.text.pdf.PdfReader.readPdf(itext-2.1.7.jar.so) |
46 |
at com.lowagie.text.pdf.PdfReader.<init>(itext-2.1.7.jar.so) |
47 |
at com.lowagie.text.pdf.PdfReader.<init>(itext-2.1.7.jar.so) |
48 |
Error: Unexpected Exception in open_reader() |
49 |
Error: Failed to open PDF file: |
50 |
Class 1.pdf |
51 |
Errors encountered. No output created. |
52 |
Done. Input errors, so no output created. |
53 |
|
54 |
Regards |
55 |
Liviu |
56 |
|
57 |
|
58 |
-- |
59 |
Do you know how to read? |
60 |
http://www.alienetworks.com/srtest.cfm |
61 |
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader |
62 |
Do you know how to write? |
63 |
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail |