using a simple setter, you have to add them by using appendRawCommands(). Have a look at drawLine() as an example how to do so.

I have checked the PDF reference for the text positioning, and I have also checked a lot of PDFBox methods that use raw commands like fillRect(...), drawLine(...), but I can't find the raw commands defined for PDFBox to make a rotation ... Is there a documentation or reference somewhere stating those commands, or if you can please give me an example for it, I will be grateful.

Best regards ,
Hesham



--------------------------------------
Included message :


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