@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
44 lines • 1.58 kB
JavaScript
;
/*
* 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.AppearanceOptions = void 0;
const ValidationUtil_1 = require("../../../internal/util/ValidationUtil");
/**
* Parameters specifying set of elements (i.e. appearance items) to represent electronic seal
* required for {@link PDFElectronicSealParams}.
*/
class AppearanceOptions {
/**
* Constructs a new `AppearanceOptions` instance.
*
* @param params - The parameters for constructing an instance of `AppearanceOptions`.
* @param [params.items] - The list of seal appearance items. Default value is `[NAME,LABELS]`.
*/
constructor(params) {
ValidationUtil_1.ValidationUtil.validateAppearanceOptions(params);
this.appearanceItems = new Set();
if (params.items) {
params.items.forEach((item) => {
this.appearanceItems.add(item);
});
}
}
/**
* Returns the set of seal appearance items.
* @returns the set of seal appearance items
*/
get items() {
return this.appearanceItems;
}
}
exports.AppearanceOptions = AppearanceOptions;
//# sourceMappingURL=AppearanceOptions.js.map