Reading PDF, TJ operator strange encoding

I’m currently trying to extract text from a PDF document, but I encountered some strange cases with Tj operator. Normally I dealt with cases like these:


Now encouter a case like this:

   Tm  [
        ( )1.828

Which converts to string ‘52249.64’. Now encoutered yet another strange case:

Only info I could find is this: A string passed to Tj is always to be interpreted according to the Encoding or CMap for the font. (In this case I expect it is a CIDFont with a CMap)

Td  (

I still don’t understand. Are these some kind of indexes that indicate an offset in some kind of character array or do I have to decode these values? Thanks!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s