0

这是我自己创建的 hello world Pdf。它的外部参照信息存储在 XRefStm 中。每次使用 Adob​​e Reader 打开时都失败了。有人能告诉我原因吗?先感谢您!

罗伊登。

%PDF-1.7
1 0 obj << /Length 94 >>stream
BT 10 782 Td /0 50 Tf 50 TL (Hello)' (World)' (OK)Tj (World)' Tj ET
endstream endobj
2 0 obj << /Count 1 /Kids 3 0 R /Type /Pages >> endobj
3 0 obj [ 4 0 R] endobj
4 0 obj << /Contents 5 0 R /MediaBox 6 0 R /Parent 2 0 R /Resources 10 0 R /类型 /Page >> endobj
5 0 obj [ 1 0 R ] endobj
6 0 obj [ 0 0 612 792 ] endobj
7 0 obj << /BaseFont /Helvetica /Encoding /MacRomanEncoding /Subtype /Type1 /Type /Font >> endobj
8 0 obj << /0 7 0 R >> endobj
9 0 obj [ /PDF /Text ] endobj
10 0 obj << /Font 8 0 R /ProcSet 9 0 R >> endobj
11 0 obj <</Pages 2 0 R /Type /Catalog /PageLayout /OneColumn >> endobj
12 0 obj << /Type /XRef /Index [0 11] /W [1 4 1] /Filter /ASCIIHexDecode /Size 12 /Length 144 /Root 11 0 R >>stream
00 00000000 00
01 00000009 00
01 0000009A 00
01 000000D1 00
01 0000EA 0001
0000014B 00 01 00000164
00
01 00000183 00
01 000001E5 0001 00000203 000100000221 0001 00000221 0001 00000252 00000252 00 ENDBEAM ENDSTREAM ENDBEAM ENDBEAM ENDBEAM ENDBEAM ENDBEN ENDOBJ StartXRef 6667;








4

1 回答 1

0

我尝试使用pdftk修复此代码

pdftk 1.pdf output fixed.pdf
Error: Failed to open PDF file: 
   1.pdf
Errors encountered.  No output created.
Done.  Input errors, so no output created.

然后我尝试使用cpdftk (from coherent),并获得了更多信息

#  cpdftk 1.pdf output fixed.pdf
cpdf could not read the file. Technical details follow:

Could not read x-ref table

最后我尝试用Multivalent.jar修复文件

和多价修复的pdf(我附上结果)

于 2012-02-13T03:36:20.823 回答