.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfPageTreeObject.CropBox Property

Specifies the crop box imposing the page boundaries displayed in a PDF Viewer.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v21.1.Core.dll

Declaration

public PdfRectangle CropBox { get; set; }

Property Value

Type Description
PdfRectangle

A PdfRectangle object, specifying the crop box.

Remarks

The crop box defines the region to which the contents of the page shall be clipped (cropped) when displayed or printed.

The default setting is the page’s PdfPageTreeObject.MediaBox value.

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