Hi,

Hesham G. schrieb:
Hello ,

I've seen I can use PDPage.setRotation(...) to rotate a page through PDFBox, but what I'm trying to do is to draw some rotated text.
> I want the text to appear rotated 90 degrees.
Is that possible ?
Yes, it is, but you have to use a suitable text matrix as described in
chapter 5.3.1 Text-positioning operators in the pdf1.7 reference.
As the PDPageContentStream class doesn't yet support those commands (see [1])
using a simple setter, you have to add them by using appendRawCommands(). Have
a look at drawLine() as an example how to do so.

Thanks ,
Hesham

BR
Andreas Lehmkühler

[1] https://issues.apache.org/jira/browse/PDFBOX-505

Reply via email to