title: how to rotate pages but not the text in iText?
body: <p>I'm trying to create a PDF document with some pages in portrait and others in landscape, but seeing this example (<a href="http://developers.itextpdf.com/examples/page-events/clone-page-orientation-and-rotation" rel="nofollow noreferrer">iText7 - Page orientation and rotation</a>) I found that the page rotates to landscape but the text also does it (<a href="http://gitlab.itextsupport.com/itext7/samples/raw/master/src/test/resources/sandbox/events/cmp_page_rotation.pdf" rel="nofollow noreferrer">PDF generated from iText7 samples</a>), then, I need that the pages to rotate but the text continues from left to right, how in the next image.</p>
  
  <p>Note: I tried to use <code>document.getPdfDocument().addNewPage(new PageSize(PageSize.A4.rotate()));</code>but it works for one page, not for the next x pages.</p>
  
  <p><a href="https://i.stack.imgur.com/AVNfS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AVNfS.png" alt="enter image description here"></a></p>