UNPKG

@adobe/pdfservices-node-sdk

Version:

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

24 lines 1.3 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.ProtectPDFInternalAssetRequest = void 0; const ProtectPDFParamsPayload_1 = require("./ProtectPDFParamsPayload"); const PasswordProtection_1 = require("./PasswordProtection"); class ProtectPDFInternalAssetRequest extends ProtectPDFParamsPayload_1.ProtectPDFParamsPayload { constructor(assetID, protectPDFParams, notifierConfigList) { super(new PasswordProtection_1.PasswordProtection(protectPDFParams.userPassword, protectPDFParams.ownerPassword), protectPDFParams.encryptionAlgorithm, protectPDFParams.contentEncryption, protectPDFParams.permissions ? [...protectPDFParams.permissions.values] : undefined); this._assetID = assetID; this._notifiers = notifierConfigList; } } exports.ProtectPDFInternalAssetRequest = ProtectPDFInternalAssetRequest; //# sourceMappingURL=ProtectPDFInternalAssetRequest.js.map