@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
49 lines • 1.87 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.PDFWatermarkParams = void 0;
const ValidationUtil_1 = require("../../../internal/util/ValidationUtil");
/**
* Parameters for creating a PDF Watermark using {@link PDFWatermarkJob}.
*/
class PDFWatermarkParams {
/**
* Constructs a new `PDFWatermarkParams` instance.
*
* @param params The parameters for constructing an instance of `PDFWatermarkParams`.
* @param [params.watermarkAppearance] {@link WatermarkAppearance} object containing the appearance parameters for watermark.
* @param [params.pageRanges] The page ranges on which watermark has to be applied in the input PDF file.
*/
constructor(params) {
ValidationUtil_1.ValidationUtil.validatePDFWatermarkParams(params);
this._watermarkAppearance = params.watermarkAppearance;
this._pageRanges = params.pageRanges;
}
/**
* Returns the {@link WatermarkAppearance}.
*
* @returns the {@link WatermarkAppearance}.
*/
get watermarkAppearance() {
return this._watermarkAppearance;
}
/**
* Returns the page ranges on which watermark has to be applied in the input PDF file.
*
* @returns the page ranges on which watermark has to be applied in the input PDF file.
*/
get pageRanges() {
return this._pageRanges;
}
}
exports.PDFWatermarkParams = PDFWatermarkParams;
//# sourceMappingURL=PDFWatermarkParams.js.map