Table of Contents

Property TrimBox

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

TrimBox

Gets or sets the trim box of the page.

public PdfBox TrimBox { get; set; }

Property Value

PdfBox

The trim box of the page expressed in PDF's default user space coordinate system. In default user space the positive X axis extends horizontally to the right and the positive Y axis extends vertically upward.

Remarks

Default value: Equal to CropBox.

The trim box defines the intended dimensions of the finished page after trimming. It may be smaller than the MediaBox to allow for production-related content, such as printing instructions, cut marks, or color bars.

Exceptions

UnexpectedStructureException

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