Example
instance.applyOperations([{
type: "addPageMargins",
pageIndexes: [1, 2],
margins: new NutrientViewer.Geometry.Inset({
top: 100,
left: 100,
right: 100,
bottom: 100
})
}]);
Nutrient Web SDK
instance.applyOperations([{
type: "addPageMargins",
pageIndexes: [1, 2],
margins: new NutrientViewer.Geometry.Inset({
top: 100,
left: 100,
right: 100,
bottom: 100
})
}]);
Adds margins to the pages of the document. If the
pageIndexesproperty is undefined, the new margins are applied to all pages. Negative numbers will shrink the page.Content and annotations will be repositioned back to the original location on the page, and other boxes (crop, bleed, trim, art) will be adjusted to encompass the same area.