Thanks for the suggestion desemondo!
I've been leaning very heavily on the Adobe document you referred to (especially the section you referenced) and I had actually seen that example too. Unfortunately it doesn't really help with my problem because my issue is PDF::API2-specific.
I guess it might be helpful to rephrase my question:
how do I use PDF::API2 to "import" the fonts that are embedded in a PDF so that I can map the character IDs used in the content stream to unicode code points (which can then be assembled into words and sentences...etc.)?
To put the question in perspective, here is a simple example of what I'm dealing with. In the example you supplied, the characters "ABC" are in a known encoding. They would be encoded in the PDF exactly as the example states. However I am dealing with PDFs that do something like:
BT
/F13 12 Tf
288 720 Td
[<01>4<02>-1<03>-1<04>-1<05>2<06>] TJ
ET
I need a way to use PDF::API2 to map the character IDs (the things between the angle brackets) to unicode code points...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.