[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

PDF::Writer text

Patrick Gundlach

4/22/2006 9:56:00 PM

Hi,

I'd like to use PDF::Writer and insert a text but with my own word
spacing. Is there any way to do that? Should I use tags for that? I'd
like to have something like "Hello(5mm)Ruby" (syntax doesn't really
matter), such as the Tj text positioning operator in pdf.
Currently I get

BT 20.000 20.000 Td /F1 10.0 Tf 0 Tr (Hello, Ruby.) Tj ET

and the result should be like

BT 20.000 20.000 Td /F1 10.0 Tf 0 Tr [(Hello)20(,)30(Ruby.)]TJ ET

Patrick