具有 L、O、E、N、T 和 H 等键名的 PDF COSDictionary
PDF COSDictionary with key names like L, O, E, N, T, andH
当我查看 Apache Java pdfbox 解析器代码时,第一个字典具有单个字符的键名称和简单整数的值。例如,字典中可以有一个词条(COSName{N}:COSInt{606})
,另一个词条(COSName{T}:COSInt{3423924})
。
这些单字符键名必须有一些预定义的含义。为什么值是简单整数?有人可以提供更多关于他们的意思的见解吗?它们是 PDF 规范定义的一些偏移量或代码吗?
ISO 32000-1:2008 规范包括已知字典条目的表格,它们通常列出 Key、Type 和 Value[=30 的列=].这通常包括对密钥含义的解释,有时还明确提及允许的值。
O键
例如第 12.3.5 节集合 显示在 Table 157 – 集合字段字典中的条目:
O
integer
(Optional) The relative order of the field name in the user interface. Fields shall be sorted by the conforming reader in ascending order.
然而,这些键在不同的词典中可能具有不同的含义。
例如第 7.6.3.2 节标准加密字典 显示在 Table 21 - 标准安全处理程序的附加加密字典条目:
O
string
(Required) A 32-byte string, based on both the owner and user passwords, that shall be used in computing the encryption key and in determining whether a valid owner password was entered. For more information, see 7.6.3.3, "Encryption Key Algorithm," and 7.6.3.4, "Password Algorithms."
您应该可以在那里找到对此类键的解释。
当我查看 Apache Java pdfbox 解析器代码时,第一个字典具有单个字符的键名称和简单整数的值。例如,字典中可以有一个词条(COSName{N}:COSInt{606})
,另一个词条(COSName{T}:COSInt{3423924})
。
这些单字符键名必须有一些预定义的含义。为什么值是简单整数?有人可以提供更多关于他们的意思的见解吗?它们是 PDF 规范定义的一些偏移量或代码吗?
ISO 32000-1:2008 规范包括已知字典条目的表格,它们通常列出 Key、Type 和 Value[=30 的列=].这通常包括对密钥含义的解释,有时还明确提及允许的值。
O键
例如第 12.3.5 节集合 显示在 Table 157 – 集合字段字典中的条目:
O
integer
(Optional) The relative order of the field name in the user interface. Fields shall be sorted by the conforming reader in ascending order.
然而,这些键在不同的词典中可能具有不同的含义。
例如第 7.6.3.2 节标准加密字典 显示在 Table 21 - 标准安全处理程序的附加加密字典条目:
O
string
(Required) A 32-byte string, based on both the owner and user passwords, that shall be used in computing the encryption key and in determining whether a valid owner password was entered. For more information, see 7.6.3.3, "Encryption Key Algorithm," and 7.6.3.4, "Password Algorithms."
您应该可以在那里找到对此类键的解释。