手工制作的 PDF 被 Acrobat 认为是错误的,即使它通过了在线验证

Hand-crafted PDF considered wrong by Acrobat even though it passes online validation

我已经手工制作了一份 PDF(https://media.24usoftware.com/d/PDFwithOnlyLink.pdf) and modified another one, generated from FileMaker, in order to add web link annotations (https://media.24usoftware.com/d/PDFwithLinks.pdf). They both pass validation at https://www.pdf-online.com/osa/validate.aspx,但出于某种原因,当我在 Adob​​e Reader 中打开它们时,它们会立即被修改,所以当我尝试关闭它们时,Adobe Reader 问我是否要保存更改。但我不知道这些更改是什么以及为什么要进行这些更改。有什么想法吗?Adobe 的支持声称存在语法错误,但没有提供任何细节,其中的语法错误。

对于您的 hand-crafted PDF 文件,Ghostscript 说您的外部参照 table 是错误的,一些条目不正好是 20 个字节。这是外部参照 table 中条目的要求,如果您使用 \r 或 \n 而不是 \r\n 作为外部参照条目(正如您所做的那样),则必须用白色填充条目 space.

我在你修改的文件上也收到了同样的警告。

请参阅 1.7 PDF 参考手册的第 94 页,其中写道:

Each entry is exactly 20 bytes long, including the end-of-line marker.

之后:

If the file’s end-of-line marker is a single character (either a carriage return or a line feed), it is preceded by a single space; if the marker is 2 characters (both a carriage return and a line feed), it is not preceded by a space. Thus, the overall length of the entry is always exactly 20 bytes.

您可能需要考虑使用不同的验证工具,这是一个基本且非常的常见错误,如果该验证器无法找到它,那就不好说了因为它的质量。

虽然很失望Acrobat X Pro自带的验证分析器也找不到.....