PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

> In the Adobe PDF Reference, I haven't been able to find anything 
> related to string alignment, e.g. right aligned items on an invoice 
> with a Roman script. Unless I have missed something, the only 
> way seems 
> to be to rely on string widths. In my humble opinion, this is rather 
> absurd. 

Absurd or not, that's how it is.  Nobody claimed generating PDFs
was designed to be easy for the programmer doing it.

>What is the string width anyway ? The string width 
> returned by 
> the OS ? Who guarantuees me that another computer on another OS will 
> reproduce that exact same string width ?

The PDF format is extremely strict on this point. The string width,
except for the base 14 fonts (which are standardised) comes from
the PDF itself, in the Widths array (or similar for CID fonts). 
The Widths (or similar) data is (except as noted) compulsory, so
to generate a PDF, you must in any case have this information.

Aandi


To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to