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

PdfPageTreeObject.MediaBox Property

Specifies the media box defining the boundaries of the physical medium on which the page is to be printed.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

#Declaration

public PdfRectangle MediaBox { get; set; }

#Property Value

Type Description
PdfRectangle

A PdfRectangle object, specifying the media box.

#Remarks

The media box may include any extended area surrounding the finished page for bleed, printing marks, or other such purposes. It may also include areas close to the edges of the medium that cannot be marked because of physical limitations of the output device.

Discarding the content that falls outside the media box boundary will not affect the meaning of the PDF file.

Note

The PDF page unit of measurement is points, which measures 1/72 of an inch (0.3528 mm). You can convert this unit of measurement, e.g., to pixels using the Units.PointsToPixelsF method.

See Also