Table of Contents

Property Width

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Width

Gets or sets the width of the page, expressed in PDF's default user space units.

public double Width { get; set; }

Property Value

double

The width of the page, expressed in PDF's default user space units.

Remarks

Default value: 595 (the width of the A4 sheet).

NOTE: Changing the value of this property updates value of MediaBox property.

The Change page size section describes different ways to resize pages.

Exceptions

UnexpectedStructureException

The internal PDF structure does not contain the corresponding required value, or the value has an unexpected type.

ArgumentOutOfRangeException

value is less than 1.