Skip to main content
A newer version of this page is available. .
.NET Standard 2.0+

PdfDocumentProcessor.AddNewPage(PdfRectangle) Method

Adds an empty page with the specified page size to the current document.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v19.1.dll

Declaration

public PdfPage AddNewPage(
    PdfRectangle mediaBox
)

Parameters

Name Type Description
mediaBox PdfRectangle

A PdfRectangle object that is the actual page size.

Returns

Type Description
PdfPage

A PdfPage object that is the added page.

Remarks

The AddNewPage method creates an empty page. Use the PdfDocumentProcessor.RenderNewPage method to create a new page with provided graphics.

See Also