How can I get a PDF with the correct page breaks?