PageSize

Overview

PageSize is a class in Aspose.Pdf FOSS for Java.

Predefined page sizes and custom page dimensions for PDF documents.

Properties

NameTypeAccessDescription
widthdoubleReadReturns the width in user-space units (points).
heightdoubleReadReturns the height in user-space units (points).
A1PageSizeReadISO A1: 594 x 841 mm (1684 x 2384 points).
A2PageSizeReadISO A2: 420 x 594 mm (1190 x 1684 points).
A3PageSizeReadISO A3: 297 x 420 mm (842 x 1190 points).
A4PageSizeReadISO A4: 210 x 297 mm (595 x 842 points).
LETTERPageSizeReadUS Letter: 8.5 x 11 in (612 x 792 points).
LEGALPageSizeReadUS Legal: 8.5 x 14 in (612 x 1008 points).

Methods

SignatureDescription
PageSize(width: double, height: double)Creates a page size with the specified dimensions.
getWidth()doubleReturns the width in user-space units (points).
getHeight()doubleReturns the height in user-space units (points).
toString()String

See Also