Forum How do I...?

Mixed page sizes

jprateragg
How do you mix page sizes? I need some pages to be US-Letter and some to be US-Legal all within the same document. Thanks!
mikeday
You can use named pages, like this:
@page legal {
    size: US-legal
}

div.terms { page: legal }

<div class="terms">
This will create a new US legal page.
</div>
weaver3110
Hello,
I am currently testing with the Prince XML demo for my company and I ran into an issue that you may be able to help me with. I'm attempting to set up a 2 page PDF, the first page 1.5"x11" and the second page 8.5"x11". I've followed the examples I was able to find on the forum but for some reason when I change the page size the content area moves down .125" so that the crops and bleeds no longer line up. Please let me know any insight you may have. Thanks!

edit: I simplified my code so it would be easier to read and isolate the problem.
  1. Test.zip4.5 MB
    THe HTML, images and PDF prince created

Edited by weaver3110

weaver3110
So I was able to find a solution but I'm not completely satisfied with it because it isn't really a solution as much as it is a work around. If you don't mind looking at it, please let me know if there is a better way. Thanks for your time!
  1. sizeTestSolution.html1.3 kB
    HTML
mikeday
We will take a look at this issue. Page bleed is always very tricky. :)