officefileapi-devexpress-dot-pdf-dot-pdfpageinfo.md
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
public PdfRectangle CropBox { get; }
Public ReadOnly Property CropBox As PdfRectangle
| Type | Description |
|---|---|
| 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
int normalizedAngle = NormalizeRotate(pdfViewer.RotationAngle + pageInfo.RotationAngle);
var cropBox = pageInfo.CropBox;
PdfRectangle viewCropBox;
winforms-pdf-viewer-redaction-annotations/CS/DXApplication1/Form1.cs#L41
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
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
Dim pageInfo As PdfPageInfo = pdfViewer.GetPageInfo(rect.PageIndex + 1)
Dim pageCropBox As PdfRectangle = pageInfo.CropBox
Dim p1 As PdfPoint = rect.Point1
See Also