Back to Devexpress

PdfPageInfo.CropBox Property

officefileapi-devexpress-dot-pdf-dot-pdfpageinfo.md

latest3.2 KB
Original Source

PdfPageInfo.CropBox Property

Gets the page’s crop box – the region to which the contents of the page shall be clipped (cropped) when displayed or printed.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public PdfRectangle CropBox { get; }
vb
Public ReadOnly Property CropBox As PdfRectangle

Property Value

TypeDescription
PdfRectangle

The page’s crop box in the user coordinate system.

|

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

Note

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.

pdf-viewer-get-page-info/CS/pdf-viewer-sticky-note/Form1.cs#L55

csharp
int normalizedAngle = NormalizeRotate(pdfViewer.RotationAngle + pageInfo.RotationAngle);
var cropBox = pageInfo.CropBox;
PdfRectangle viewCropBox;

winforms-pdf-viewer-redaction-annotations/CS/DXApplication1/Form1.cs#L41

csharp
PdfPageInfo pageInfo = pdfViewer.GetPageInfo(rect.PageIndex + 1);
PdfRectangle pageCropBox = pageInfo.CropBox;
PdfPoint p1 = rect.Point1;

pdf-viewer-get-page-info/VB/pdf-viewer-sticky-note/Form1.vb#L52

vb
Dim normalizedAngle As Integer = NormalizeRotate(pdfViewer.RotationAngle + pageInfo.RotationAngle)
Dim cropBox = pageInfo.CropBox
Dim viewCropBox As PdfRectangle

winforms-pdf-viewer-redaction-annotations/VB/DXApplication1/Form1.vb#L28

vb
Dim pageInfo As PdfPageInfo = pdfViewer.GetPageInfo(rect.PageIndex + 1)
Dim pageCropBox As PdfRectangle = pageInfo.CropBox
Dim p1 As PdfPoint = rect.Point1

See Also

PdfPageInfo Class

PdfPageInfo Members

DevExpress.Pdf Namespace