UNPKG

@adobe/pdfservices-node-sdk

Version:

The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.

49 lines 1.68 kB
"use strict"; /* * Copyright 2024 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have received this file from a source other than Adobe, * then your use, modification, or distribution of it requires the prior * written permission of Adobe. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReorderPagesParams = void 0; const ValidationUtil_1 = require("../../../internal/util/ValidationUtil"); /** * Parameters for reordering a PDF file using {@link ReorderPagesJob}. */ class ReorderPagesParams { /** * Constructs a new `ReorderPagesParams` instance. * * @param params - The parameters for constructing a `ReorderPagesParams` instance. * @param params.asset - The asset to be reordered. Cannot be undefined. * @param params.pageRanges - The page ranges to be used for reordering pages. Cannot be undefined. */ constructor(params) { ValidationUtil_1.ValidationUtil.validateReorderPagesParams(params); this._asset = params.asset; this._pageRanges = params.pageRanges; } /** * Returns the asset to be reordered. * * @returns the asset to be reordered. */ get asset() { return this._asset; } /** * Returns the page ranges to be used for reordering pages. * * @returns the page ranges to be used for reordering pages. */ get pageRanges() { return this._pageRanges; } } exports.ReorderPagesParams = ReorderPagesParams; //# sourceMappingURL=ReorderPagesParams.js.map