I printed the job, and got the exact same thing as the preview. LAYOUT_NR returns 1 on both pages, but I know it picked the layouts properly, because the first page has the static text "LAYOUT 1", and the second page "LAYOUT 2".