【问题标题】:Failed to open self created pdf with Adobe Reader无法使用 Adob​​e Reader 打开自行创建的 pdf
【发布时间】:2012-02-13 03:15:30
【问题描述】:

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

罗伊登。

%PDF-1.7
1 0 obj >流
BT 10 782 Td /0 50 Tf 50 TL (Hello)' (World)' (OK)Tj (World)' Tj ET
端流 endobj
2 0 obj > endobj
3 0 obj [ 4 0 R ] endobj
4 0 obj > endobj
5 0 obj [ 1 0 R ] endobj
6 0 obj [ 0 0 612 792 ] endobj
7 0 obj > endobj
8 0 obj > endobj
9 0 obj [ /PDF /Text ] endobj
10 0 obj > endobj
11 0 obj > endobj
12 0 obj >stream
00 00000000 00
01 00000009 00
01 0000009A 00
01 000000D1 00
01 000000EA 00
01 0000014B 00
01 00000164 00
01 00000183 00
01 000001E5 00
01 00000203 00
01 00000221 00
01 00000252 00
尾流
endobj
开始外部参照
667
%%EOF

【问题讨论】:

  • 顺便说一句,相同的内容与外部参照表成功
  • 有编辑权限的人可以在标题中添加“s/Filed/Failed”吗?

标签: pdf stream cross-reference


【解决方案1】:

我尝试使用 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(来自 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(我附上结果)

【讨论】:

  • 感谢您的帮助。我访问了 1-x.pdf 并发现 Xref Stream 上没有过滤器,所以我只是简单地删除了我文件上的过滤器。天哪!现在可以用Adobe Reader正常打开了!滤镜到底是怎么回事!???奥兹
猜你喜欢
  • 1970-01-01
  • 2013-08-02
  • 1970-01-01
  • 2012-03-09
  • 1970-01-01
  • 2019-02-16
  • 2012-11-30
  • 2019-06-21
  • 1970-01-01
相关资源
最近更新 更多