Gets or sets the media box of the page.

Namespace: BitMiracle.Docotic.Pdf
Assembly: BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfRectangle MediaBox { get; set; }
VB
Public Property MediaBox As PdfRectangle
	Get
	Set

Property Value

Type: PdfRectangle
The media box of the page.

Remarks

Default value: { 0, 0, Width, Height }

The media box defines the boundaries of the physical medium on which the page is to be printed. It 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. Content falling outside this boundary can safely be discarded without affecting the meaning of the PDF file.

Changing the value of this property resets values of other page boxes (CropBox, BleedBox, TrimBox, ArtBox). Their values will be reset to this property's value.

Additionally, changing the value of this property resets values of Width, Height, Size, Orientation properties.

See Also