Skip to main content

PdfDocumentProcessor.InsertNewPage(Int32, PdfRectangle) Method

Inserts a new page with a specified page number and page size into the document.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v23.2.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public PdfPage InsertNewPage(
    int pageNumber,
    PdfRectangle mediaBox
)

Parameters

Name Type Description
pageNumber Int32

An integer value that is the number of a page that should be inserted into the document.

mediaBox PdfRectangle

A PdfRectangle object that is the actual page size.

Returns

Type Description
PdfPage

A PdfPage object that is the new inserted page.

See Also