Nutrient Web SDK

ReferenceDocumentOperationsCropPagesOperation

Interface CropPagesOperation

Crops the pages of PDF document. If the pageIndexes property is undefined, the cropping operation is applied to all pages.

Interface

Example

instance.applyOperations([{
type: "cropPages",
pageIndexes: [1, 2],
cropBox: new NutrientViewer.Geometry.Rect({
top: 100,
left: 100,
width: 100,
height: 100
})
}]);

Properties