@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
40 lines • 1.62 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.PDFPropertiesParams = void 0;
const ValidationUtil_1 = require("../../../internal/util/ValidationUtil");
/**
* Parameters for getting properties of a PDF using {@link PDFPropertiesJob}.
*/
class PDFPropertiesParams {
/**
* Constructs a new `PDFPropertiesParams` instance.
*
* @param params - The parameters for constructing a `PDFPropertiesParams` instance.
* @param [params.includePageLevelProperties] Whether to include page level properties in the resulting
* PDF properties. Default value is `false`.
*/
constructor(params) {
ValidationUtil_1.ValidationUtil.validatePDFPropertiesParams(params);
this._includePageLevelProperties = params.includePageLevelProperties;
}
/**
* Returns `true` if page level properties are set to be included in the resulting PDF properties.
*
* @returns `true` if page level properties are set to be included in the resulting PDF properties.
*/
get includePageLevelProperties() {
return this._includePageLevelProperties;
}
}
exports.PDFPropertiesParams = PDFPropertiesParams;
//# sourceMappingURL=PDFPropertiesParams.js.map