开发者

How can I change a PDF's encoding using Perl?

How 开发者_如何学Goto change pdf encoding using perl ? If possible, which module/method is used ?


Oh boy.

"Encoding" in PDF can mean any of several things you probably don't want to mess with.

PDF is not some XML markup where the whole thing is in one encoding. Each font can (and often does) define its own (possibly customized) encoding that is used to determine which glyphs from that font are to be drawn given the bytes in the content stream. Said font isn't required to also provide a means of going from glyphs to CHARACTERS.

A "glyph" is a bunch of squiggles in a particular configuration. It is purely graphical

A "character" has a meaning, is part of an alphabet, etc. It is purely logical.

So, I must ask: Why do you want to change your PDFs' encoding. What's the goal? Are you trying to get text out of your PDFs, failing, and think this might help?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜