PDF Tj command with angle brackets?

自古美人都是妖i 提交于 2019-12-03 15:43:42

What is going on here:

  • in the content stream the Tj command is given the string <0605> to draw. a string in between <> is a hex string and hence the characters #6 and #5 are drawn. In 3.2.3 of the linked PDF reference is the notation explained.

  • Just before the text draw command the font F4 is selected using the Tf command.

  • Given the resource fork of the page containing the font is referenced as object 65 revision 0. This font object is a subsetted Truetype font where glyphs 1..35 are defined. No Encoding is specified (thus WinAnsiEncoding is used). So the embedded subsetted font rearranged the characters in the font in a non standard manner (occurs quite often).

Now if you want to know how these glyph IDs are linked to Unicode characters: the font has a ToUnicode link where a stream contains a CMAP defining the mapping. This should be sufficient to convert the string to an Unicode string.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!