Previous | Next | (P-PDF) Developers
Topic: Adjusting annotation & text string position & widt
Conf: (P-PDF) Developers, Msg: 32396
From: aandi
Date: 1/8/2002 09:28 PM
>1) If the text string
>"Pattern" is replaced with a
>different length (ie. longer
>or shorter )
>string, what is the right way
>to work out the new
>central position X coordinate
>position ? Is there
>any PDF operator that does
>this already ?
No, no operator. You need to have a table of character widths. You can work out the old width and the new width, then adjust the left side of the new string (by half of the difference).
>
>2) Because the "underlining"
>effect of the text string
>is also a result of the
>Hyperlink type in Word
>document, how can I change
>that underlining length
>in PDF ?
This is a very difficult task; you have to identify which objects are the old underline, remove them, and draw a new underline to the appropriate width. Much easier if you don't have to remove the old - can you stop Word doing that, or edit your template manually first? Underlines are not generally done with "re" but by lines and strokes. Ignore what you see in the file and create your own new line.