UNPKG

@adobe/pdfservices-node-sdk

Version:

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

40 lines 1.47 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.RemoveProtectionParams = void 0; const ValidationUtil_1 = require("../../../internal/util/ValidationUtil"); /** * Parameters for removing protection from PDF using {@link RemoveProtectionJob}. */ class RemoveProtectionParams { /** * Constructs a new `RemoveProtectionParams` instance. * * @param params - The parameters for constructing a `RemoveProtectionParams` instance. * @param params.password - The password to be used for removing security/permissions from a PDF file. * Cannot be undefined. */ constructor(params) { ValidationUtil_1.ValidationUtil.validateRemoveProtectionParams(params); this._password = params.password; } /** * Returns the password to be used for removing security/permissions from a PDF file. * * @returns The password. */ get password() { return this._password; } } exports.RemoveProtectionParams = RemoveProtectionParams; //# sourceMappingURL=RemoveProtectionParams.js.map