public enum PDFPageSize
Specifies the desired page size (media box size) for PDF rendering operations.
public static PDFPageSize FROM_IMAGE
Each page is as large as its image at 72 dpi.
public static PDFPageSize A4
The page has the aspect ratio of the image, but is fitted into A4 size. Whether portrait or landscape depends on the images aspect ratio.
public static PDFPageSize FIXED_A4
The page has A4 size. The image is fitted and centered within the page. Whether portrait or landscape depends on the images aspect ratio.
public static PDFPageSize US_LETTER
The page has the aspect ratio of the image, but is fitted into US letter size. Whether portrait or landscape depends on the images aspect ratio.
public static PDFPageSize FIXED_US_LETTER
The page has US letter size. The image is fitted and centered within the page. Whether portrait or landscape depends on the images aspect ratio.
public static PDFPageSize AUTO_LOCALE
Each page of the result PDF will be of US letter or A4 size depending on the current locale. Whether portrait or landscape depends on the images aspect ratio.
public static PDFPageSize AUTO
For each page the best matching format (A4 or US letter) is used. Whether portrait or landscape depends on the images aspect ratio.