Forum How do I...?

Rotating a landscape page to portrait after generating it

timo
Hi!

We have a situation where a booklet contains both portrait and landscape pages.

However, in order for the PDF to be fully print-compliant, all pages should be in portrait mode. We've tried rotating the content/page with CSS, but that doesn't seem to really work.

Is it possible to automatically rotate landscape pages to portrait after Prince has generated them?

Cheers,
Timo
mikeday
I see what you mean. Currently Prince specifies Rotate=90 for landscape pages, however that applies to screen display and printing, whereas it would be better if it only applied to screen display.

It looks like we will need a new CSS property to specify page orientation, so we can distinguish the cases of printing on actual landscape orientation paper, and printing a landscape page on portrait orientation paper.
timo
Would you be able to estimate when this feature is available?
mikeday
Not sure yet, but it would be nice to have it ready for testing in January.
timo
Any progress on this?
mikeday
Not yet, but it is still on the roadmap for Prince 10. We have been held up in the past couple of weeks by some minor bug fixing, but things are clearing now. :)
mikeday
Prince 10 is now available, and includes a new @page property called prince-rotate-body which can be used to create landscape pages more conveniently.
timo
Nice, thanks for the info! We'll give it a try.