add

public final PdfPage add()

Adds a new page at the end of the document with the default A4 page size.

Return

The newly created .

Throws

Thrown when the operation fails.


public final PdfPage add(float width, float height)

Adds a new page at the end of the document with the specified dimensions.

Return

The newly created .

Parameters

width

Width of the new page in points.

height

Height of the new page in points.

Throws

Thrown when the operation fails.


public final PdfPage add(PdfPageSizes pageSize)

Adds a new page at the end of the document with a predefined page size.

Return

The newly created .

Parameters

pageSize

The predefined page size.

Throws

Thrown when the operation fails.