Nutrient Web SDK
    Preparing search index...

    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.

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

    Properties

    pageIndexes?: number[]
    type: "addPageMargins"