i'm trying to rotate every landscape page in document, so all pages are portrait orientation. i'm using apache pdfbox for that.
PDPage page = document.getPage(pageIndex);
PDRectangle mediaBox = page.getMediaBox();
if(mediaBox.getWidth() > mediaBox.getHeight()) {
page.setRotation(270);
}
this works fine, page is rotated. now, the problem is, that after i send document to printer, it will put some marks on it (see image1).
on rotated page however marks appear on wrong position. like it would appear on landscape page (see image2).
i think it has something to do with origin. do you have any ideas how to set origin, so that printer mark appears on right place?
thank you and best regards Dalibor

