PDF命名字典修改

时间:2018-04-25 02:23:11

标签: pdf pdf-generation

我手动修改PDF并需要更新名称词典。有一个类似于以下的对象编码我认为是嵌入文档的文件名:

25 0 obj
<</Names[<FEFF003C00320030003E0061002E006A00700067>26 0 R<FEFF003C00320030003E0061006C006D006F006E00640073002E007000640066>27 0 R<FEFF003C00320030003E0062002E006A00700067>28 0 R<FEFF003C00320031003E004100620062006500790020005200650068006100620069006C00690074006100740069006F006E00200061006E00640020004E0075007200730069006E0067002000430065006E007400650072002C0020005400680065002000350035003200300031002D002800310029002E007000640066>29 0 R<FEFF003C00320031003E004100620062006500790020005200650068006100620069006C00690074006100740069006F006E00200061006E00640020004E0075007200730069006E0067002000430065006E007400650072002C0020005400680065002000350035003200300031002D0032002E007000640066>30 0 R<FEFF003C00320032003E00540065007300740069006E006700200077006F00720064002E0064006F00630078>31 0 R<FEFF0074006D0070005F00320064005900630034006E0058003800320032004E00380065007400470044006D004500480057002F006F00630072002F004100620062006500790020005200650068006100620069006C00690074006100740069006F006E00200061006E00640020004E0075007200730069006E0067002000430065006E007400650072002C0020005400680065002000350035003200300031002D002800310029002E007000640066>4 0 R<FEFF0074006D0070005F00320064005900630034006E0058003800320032004E00380065007400470044006D004500480057002F006F00630072002F004100620062006500790020005200650068006100620069006C00690074006100740069006F006E00200061006E00640020004E0075007200730069006E0067002000430065006E007400650072002C0020005400680065002000350035003200300031002D0032002E007000640066>8 0 R<FEFF0074006D0070005F00320064005900630034006E0058003800320032004E00380065007400470044006D004500480057002F006F00630072002F0061006C006D006F006E00640073002E007000640066>12 0 R]>>
endobj

这是什么类型的编码?:

<FEFF003C00320030003E0061002E006A00700067>26 0 R

我能够使用pdftk查看上面的哈希:

(þÿ^@<^@2^@0^@>^@a^@.^@j^@p^@g) 26 0 R

我可以看到这在视觉上表示类似于:(&lt; 20&gt; a.jpg)26 0 R - 哪个cdorrespond到ojbect 26

我希望能够解密/解压缩此对象,手动修改它,然后将其添加回PDF(或类似的东西并修改外部参照表等)。

提前谢谢

1 个答案:

答案 0 :(得分:1)

你叫什么&#34;哈希&#34;是UTF-16BE编码的Base64编码字符串。

通常,您不应该手动修改PDF,因为它是二进制文件格式。