Insert(Int32, PdfRectangle) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Inserts a new, empty page at index.

public PdfPage Insert(int index, PdfRectangle mediaBox)

Parameters

index
Int32

The new page's index: 0 to insert before the first page, Count to add after the last.

mediaBox
PdfRectangle

The page's media box, in default user space units (1/72 inch).

Returns

PdfPage
The new page.

Remarks

ISO 32000-2 §7.7.3.3, Table 31 (PDF 1.0): a new indirect page object << /Type /Page /MediaBox [...] /Resources <<>> >> with no Contents (an empty page), placed in the rebuilt page tree.