Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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