PageControl.setPdfPageSize

Sets the PDF page size when a page is included in a PDF. Any valid value for the CSS3 @page size property can be specified, e.g. A4, A5, Letter, Legal, 8.5in 11.5in.

Further documentation.

Parameters

java.lang.String  pdfPageSize,