PdfPageDimensions.MediaBox Property

Definition

Gets the size of a rectangle that defines the boundaries of the area that the Portable Document Format (PDF) page will be displayed or printed to.

public:
 property Rect MediaBox { Rect get(); };
Rect MediaBox();
public Rect MediaBox { get; }
var rect = pdfPageDimensions.mediaBox;
Public ReadOnly Property MediaBox As Rect

Property Value

The size of the Portable Document Format (PDF) page's display or print boundaries.

Applies to