@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
86 lines • 3.14 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.PermissionSettings = void 0;
/**
* This class provides information about the permission settings of the specified PDF file, such as restricting print
* permissions,
* edit permissions etc.
*/
class PermissionSettings {
/**
* Returns a boolean specifying whether the specified PDF file will be supported by a screen reader.
*
* @returns `true` if the specified PDF file will be supported by a screen reader. False otherwise.
*/
get hasAssistiveTechnology() {
return this._assistiveTechnology;
}
/**
* Returns a boolean specifying whether form filling is permitted in the specified PDF file.
*
* @returns `true` if form filling is permitted in the specified PDF file. False otherwise.
*/
get isFormFillingAllowed() {
return this._formFilling;
}
/**
* Returns a boolean specifying whether copying the content of the specified PDF file is permitted.
*
* @returns `true` if copying the content of the specified PDF file is permitted. False otherwise.
*/
get isCopyingAllowed() {
return this._copying;
}
/**
* Returns a boolean specifying whether extracting pages of the specified PDF file is permitted.
*
* @returns `true` if extracting pages of the specified PDF file is permitted. False otherwise.
*/
get isPageExtractionAllowed() {
return this._pageExtraction;
}
/**
* Returns a boolean specifying whether adding or inserting pages in the specified PDF file is permitted.
*
* @returns `true` if adding or inserting pages in the specified PDF file is permitted. False otherwise.
*/
get isDocumentAssemblyAllowed() {
return this._documentAssembly;
}
/**
* Returns a boolean specifying whether adding comments in the specified PDF file is permitted.
*
* @returns `true` if adding comments in the specified PDF file is permitted. False otherwise.
*/
get isCommentingAllowed() {
return this._commenting;
}
/**
* Returns a boolean specifying whether editing the content in the specified PDF file is permitted.
*
* @returns `true` if editing the content in the specified PDF file is permitted. False otherwise.
*/
get isEditingAllowed() {
return this._editing;
}
/**
* Returns a string specifying permission level for printing the file.
*
* @returns A String denoting the permission level for printing the file.
*/
get printingPermission() {
return this._printing;
}
}
exports.PermissionSettings = PermissionSettings;
//# sourceMappingURL=PermissionSettings.js.map