addPage

public final void addPage()

Adds a new page to the end of the PDF document. The page size is inherited from default document settings.


public final void addPage(int index)

Adds a new page to the PDF document at the specified index. The page size is inherited from default document settings.

Parameters

index

The zero-based index where the page should be inserted.


public final void addPage(float pageWidth, float pageHeight, int index)

Adds a new page to the PDF document at the specified index.

Parameters

pageWidth

The width of the new page.

pageHeight

The height of the new page.

index

The zero-based index where the page should be inserted.


public final void addPage(float pageWidth, float pageHeight)

Adds a new page to the end of the PDF document.

Parameters

pageWidth

The width of the new page.

pageHeight

The height of the new page.