Comprender los operadores de posicionamiento de texto en PDF [duplicar]

Posible duplicado:
Comprensión de los operadores de PDF: para la aplicación de iOS

I want to understand how does the Td, TD y T* operators affect the Tm.

For example we have this info:

Tm: (20, 0, 0, 20, 100, 200)
Td: 4.1001, 0
TD: 2.8961, 0
T*: 1.2219, 0

Now how will these operators affect the Tm?

Should I multiply these values? Subtract, add? Please help me understand. Thanks in advance!

preguntado el 04 de julio de 12 a las 03:07

1 Respuestas

These operators affect the current point and as such only affect the Tx and Ty members of the Text Matrix. The PDF Reference manual has a reasonably clear definition on p406 (of the 1.7 reference).

For Td you take the current text line matrix, multiply with the implicit matrix with the Tx and Ty supplied to Td (ie the matrix is [1 0 0 1 Tx Ty]) and the result becomes both the new Text Matrix and the new Text Line Matrix.

TD is exactly the same except that it also sets the leading parameter in the text state to -Ty.

T* has the same effect as Td, but it uses the current text leading for Ty and has Tx = 0.

Transformation matrices are described in section 4.2.3 of the reference,

Respondido 04 Jul 12, 08:07

You explained it clearly. Thanks! - user1412469

I have additional question though, The Tlm or Text Line Matrix, is it safe to say that it is the beginning of every line? - user1412469

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.