Hi,
I am a beginner in PDF and have read the PDF reference a few times.
however, I still have some questions on the positioning of x, y in Operator TJ. Hopefully, there are many masters here that can help me.
I have the following PDF code below:
/F3 11.04 Tf
1 0 0 1 76.584 449.83 Tm
[(I)5( )-4(a)5(m)5( )4(s)5(u)4(c)4(h)5( )-4(a)5( )-4(s)5(t)4(u)-4(p)13(i)-4(d)-5( )26(g)] TJ
ET
BT
1 0 0 1 222.53 449.83 Tm
[(u)4(y)5( )-4(!!!)] TJ
ET
assuming the w0 for each glyph is 500 units for simplicity.
it is easy enough for 'I' to position at 76.584, 449.83.
however, what is the coordinate for the next space?
I know the following formula:
tx = ((w0-Tj/1000)*Tfs + Tc + Tw)*Th
for w0, it is 500 units.
so is it the following for next space position?
tx = ((500-5/1000)*11.04 + 0 + 0) * Th.
am I correct on the above values plug-in? and where can I find the Th value?
for more info, the media box is /MediaBox[ 0 0 595.32 841.92]
I think once the space position can be found, all the subsequent positioning could be calculated similarly.
could any masters here can correct me if I have anything misunderstood or please tell me if I've missed out anything in order for your calculation. and I will provide later.
there is totally lack of examples in PDF reference (esp for beginner like me).
sorry for such simple question to the masters here, as I am really confused in the positioning.
Please reply. Many Thanks!
JJ