.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v21.1.Core.dll

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