我正在 Ubuntu 上使用 pdflatex 生成 PDF 文件。
该文件可以通过 Apple Preview 和 Mac 上的 Adobe Acrobat Reader 2017 DC 2018 成功读取。
令人惊讶的是,我无法在 Windows 8 上使用 Adobe Acrobat Reader 11.0.20 XI 打开相同的 PDF 文件。Acrobat 告诉我该 PDF 文件已损坏:
打开文档时出错。文件已损坏,无法修复。
这并不是文件传输过程中发生的文件损坏问题:当将无法读取的文件从这台“有故障”的计算机传输回 Mac 时,该文件可以成功读取。
Ubuntu 机器上生成 PDF 文件的 pdflatex 版本:
$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Copyright 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.17; using libpng 1.6.17
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.41.0
使用 PDF 兼容性/一致性检查器 (verapdf) 时,我收到以下报告。您认为以下任何条目可能是原因吗?
Validation Profile: PDF/A-1B validation profile
PDF/A compliance: Failed
Statistics
Version: 1.10.6
Build Date: 2017-12-28T11:58:00+01:00
Processing time: 00:00:01.381
Total rules in Profile: 103
Passed Checks: 64469
Failed Checks: 2412
Validation information
Rule Status
Specification: ISO 19005-1:2005, Clause: 6.2.3, Test number: 2
DeviceRGB may be used only if the file has a PDF/A-1 OutputIntent that uses an RGB colour space Failed
724 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.3.6, Test number: 1
For every font embedded in a conforming file and used for rendering, the glyph width information in the font dictionary and in the embedded font program shall be consistent. Failed
8 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.4, Test number: 3
A Group object with an S key with a value of Transparency shall not be included in a form XObject. A Group object with an S key with a value of Transparency shall not be included in a page dictionary Failed
44 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.4, Test number: 5
The following keys, if present in an ExtGState object, shall have the values shown: CA - 1.0 Failed
1 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.2.3, Test number: 4
If an uncalibrated colour space is used in a file then that file shall contain a PDF/A-1 OutputIntent, as defined in 6.2.2 Failed
1612 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.3.5, Test number: 1
Embedded font programs shall define all font glyphs referenced for rendering with conforming file. Failed
8 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.4, Test number: 6
The following keys, if present in an ExtGState object, shall have the values shown: ca - 1.0 Failed
9 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.7.3, Test number: 1
If a document information dictionary does appear at a document, then all of its entries that have analogous properties in predefined XMP schemas, shall also be embedded in the file in XMP form with equivalent values. Failed
1 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.7.2, Test number: 1
The document catalog dictionary of a conforming file shall contain the Metadata key. Failed
1 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.3.4, Test number: 1
The font programs for all fonts used within a conforming file shall be embedded within that file, as defined in PDF Reference 5.8, except when the fonts are used exclusively with text rendering mode 3 Failed
2 occurrences Show
Specification: ISO 19005-1:2005, Clause: 6.4, Test number: 2
An XObject dictionary shall not contain the SMask key Failed
2 occurrences Show
Features information
Feature
Information dictionary
编辑
我们已经确定了问题所在:我们png
在页面的页眉中使用了一个图像文件。pdf
删除左侧页面页眉中的图像后,可以使用 Acrobat XI 2012 打开该文件!
注意
- 该
png
文件是使用 macOS X 截取的屏幕截图 pdf
可以使用 Acrobat XI 2012 打开该文件,将此png
文件包含在正确页面的页眉中或将其显示在文档正文的文本流中- 将文件转换为文件
pdf
时,可以使用 Acrobat XI 2012 打开该文件png
jpeg
我们将尝试准备一份 MWE。为了继续调查,我们非常希望能够包含png
文件。
答案1
这是 Adobe Reader 的已知问题。您可以修复它:
https://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html
Adobe 表示:
“...(Adobe Reader)10.1.5 和 11.0.01 更新通过强制更严格地解析 PDF 标头来提高安全性。该产品现在拒绝打开一小部分未正确以“%PDF-”标头开头的 PDF,并会出现错误。”