Back to Devexpress

PdfPageTreeObject.MediaBox Property

officefileapi-devexpress-dot-pdf-dot-pdfpagetreeobject-7caa220c.md

latest2.0 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public PdfRectangle MediaBox { get; set; }
vb
Public Property MediaBox As PdfRectangle

Property Value

TypeDescription
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

CropBox

ArtBox

BleedBox

TrimBox

PdfPageTreeObject Class

PdfPageTreeObject Members

DevExpress.Pdf Namespace