Nutrient Web SDK

ReferenceDocumentOperationsAddPageMarginsOperation

Interface AddPageMarginsOperation

Adds margins to the pages of the document. If the pageIndexes property 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.

Interface

Example

instance.applyOperations([{
type: "addPageMargins",
pageIndexes: [1, 2],
margins: new NutrientViewer.Geometry.Inset({
top: 100,
left: 100,
right: 100,
bottom: 100
})
}]);

Properties

pageIndexes

Optional
number[]
"addPageMargins"