Skip to main content

PdfPageTreeObject.CropBox Property

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

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v23.2.Core.dll

NuGet Package: DevExpress.Pdf.Core


public PdfRectangle CropBox { get; set; }

Property Value

Type Description

A PdfRectangle object, specifying the crop box.


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.


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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CropBox property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also