Using the text matrix is one way to do it (there are often several ways to do things in PDF); also I realize my initial remark was probably wrong because I didn't know that you intended to print a rotated text on the page.

You should improve your test to have every page rotation, i.e. also include 90 and 180. This will likely require more code.

Tilman

Am 24.02.2022 um 06:20 schrieb Dalibor Kálna:
hi, exactly. question is, ist this the right way to do it? i ask, because i 
have to explain (and defend) that solution to our client. :)

Dalibor

Am 24.02.2022 um 04:55 schrieb Tilman Hausherr <thaush...@t-online.de>:

Hi,

I just tried your project, the final file has the marker on all three pages, 
i.e. vertically on the left side.

Tilman

Am 23.02.2022 um 14:37 schrieb dalibor.ka...@bluewin.ch:
hi Tilman

thank you for you response. to clarify things first, our workflow is:

DOCX -> PDF (with some landscape pages) -> PDF (with only portrait pages) -> 
print informations added

I am resposible for rotating pages only, and another company's software (they 
use pdfbox as well) is putting diverse infos on pages before it's going to be 
printed.

If I understand "AddMessageToEachPage" example right, then they are responsible 
to rotate text according to page rotation. Am I right? I have adapted my github project, 
if you find some time to look at it.

thank you very much
Dalibor


----Ursprüngliche Nachricht----
Von : thaush...@t-online.de
Datum : 22/02/2022 - 19:42 (MN)
An : users@pdfbox.apache.org
Betreff : Re: Problem with page rotation

Hi,

I haven't tested your code, but I notice that you rotate at two
different places, was that intended?

You can see an example for a 90° rotated page in the
CreateLandscapePDF.java example in the source code download.

Tilman

Am 22.02.2022 um 09:36 schrieb dalibor.ka...@bluewin.ch:
hi there

could you help me please? I have simple 3 pages document, second page
is landscape.
I would like to rotate landscape page ( rotate() method ) and then
print some info on
every page ( print() method ). I have made small project which you can
clone on github.

Printed infos on page 2 are at the wrong position, this should be on
every page at the same
position (as on page 1 and 3).

thank you and best regards
Dalibor Kalna

GITHUB: https://github.com/dkalna/pdfbox-test.git

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to