I am new to PDF, and i want to manipulate the space between the characters in a file. I have read the PDFReference and understood some of it. Now, the problem I have is how to calculate the spaces for the text rendering.
I have for example:
1 0 0 1 0 188.28799438 cm
BT
/F2 11.04 Tf
1 0 0 -1 0 9.38000011 Tm
(Some)Tj ( )Tj
21.24200058 0 Td
(text)Tj ( )Tj
Which I want to turn into this:
1 0 0 1 0 188.28799438 cm
BT
/F2 11.04 Tf
1 0 0 -1 0 9.38000011 Tm
[(S)10(o)10(m)10(e)( )]TJ
21.24200058 0 Td
[(t)10(e)10(x)10(t)( )]TJ
To add the spaces and then be able to manipulate them. However I was wondering how to calculate the ctm and the line matrix with those added values.
I know that we concatenate cm with the previous one.
cm2 x cm1
The Tms are not concatenated Tm2 replaces Tm1.
I am stuck with the td operator and the new spaces I added. Any clue?
[...]
. – Countermarch