I'm trying your suggestion but I don't know how to "set the clipping path". Also, by "draw your text" you mean "content.showText(text);" or there is another function to draw it (the text will be a graphic on the PDF or will be added as text?).

Since the text is dynamic changing the font size is not an option :)

Ivan

Tilman wrote:
What I've seen in PDFs "in the wild" is this:

- save graphics
- rectangle
- set clipping path
- draw your text
- restore graphics


Another strategy, if you want to avoid cutting off, is to use a smaller
font if the text gets too large, or a narrow  font (Arial narrow).

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to