PreformatIN generates a number of variables when processing an input document. The following auto generated variables reflect the page properties of the input document:
In this scenario, a PDF file is received via a PDFIN filter and PreformatIN, and the output is generated by a PageOUT Process and a File output connector with a PDF driver. The input document contains a mix of Portrait and Landscape pages.
By default, the PageOUT Process uses the static page properties configured on the Paper Size tab in the Page Setup dialog box (
File >
Page Setup). This means the PDF output would contain either Portrait or Landscape pages – not a mix of both.
To enable both Portrait and Landscape pages in the output, the Page Setup option Enable width variable in PageOUT is selected, and the variable value is set to
pagewidth. The option
Enable height variable is also selected, and the variable value is set to
pageheight.
When a page is processed in PageOUT, the width and height is retrieved from the $pagewith and
$pageheight variables of the corresponding input page. This means the output now contains the same mix of Landscape and Portrait pages as the input document.