Forum How do I...?

Use-case question: Landscape tables

scalderwood
Hi,

I'm curious if Prince can handle this use-case. I want all of my PDF pages to be portrait orientation. I have tables that need to be in the landscape orientation (i.e., rotated 90 degrees CCW) and that will require multiple pages to fit. Can Prince handle going from portrait pages, to portrait pages with rotated content that flows across multiple pages, back to portrait pages?

Thanks,
Steven
mikeday
You can use CSS named pages, the only constraint is that you will get a page break before and afterwards:
@page rotated {
    size: A4 landscape
}

div.rotated { page: rotated }

<div class="rotated">
...tables go here...
</div>