@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
113 lines • 3.65 kB
JavaScript
"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.DocumentProperties = void 0;
const FontProperties_1 = require("./FontProperties");
const InfoDictProperties_1 = require("./InfoDictProperties");
class DocumentProperties {
constructor(document) {
this._isXFA = document?.is_XFA;
this._hasAcroform = document?.has_acroform;
this._fileSize = document?.file_size;
this._hasEmbeddedFiles = document?.has_embedded_files;
this._incrementalSaveCount = document?.incremental_save_count;
this._isCertified = document?.is_certified;
this._isSigned = document?.is_signed;
this._isEncrypted = document?.is_encrypted;
this._isLinearized = document?.is_linearized;
this._isPortfolio = document?.is_portfolio;
this._isTagged = document?.is_tagged;
this._isFTPDF = document?.is_FTPDF;
this._pageCount = document?.page_count;
this._pdfVersion = document?.pdf_version;
this._pdfaComplianceLevel = document?.pdfa_compliance_level;
this._pdfeComplianceLevel = document?.pdfe_compliance_level;
this._pdfuaComplianceLevel = document?.pdfua_compliance_level;
this._pdfvtComplianceLevel = document?.pdfvt_compliance_level;
this._pdfxComplianceLevel = document?.pdfx_compliance_level;
this._fonts = document?.fonts
? document.fonts?.map((font) => {
return new FontProperties_1.FontProperties(font);
})
: undefined;
this._infoDict = document?.info_dict ? new InfoDictProperties_1.InfoDictProperties(document.info_dict) : undefined;
this._xmp = document?.XMP;
}
get isLinearized() {
return this._isLinearized;
}
get pdfEComplianceLevel() {
return this._pdfeComplianceLevel;
}
get isTagged() {
return this._isTagged;
}
get isPortfolio() {
return this._isPortfolio;
}
get isCertified() {
return this._isCertified;
}
get isEncrypted() {
return this._isEncrypted;
}
get infoDict() {
return this._infoDict;
}
get isFullyTaggedPDF() {
return this._isFTPDF;
}
get pdfVersion() {
return this._pdfVersion;
}
get isAcroform() {
return this._hasAcroform;
}
get fileSize() {
return this._fileSize;
}
get isSigned() {
return this._isSigned;
}
get incrementalSaveCount() {
return this._incrementalSaveCount;
}
get containsEmbeddedFiles() {
return this._hasEmbeddedFiles;
}
get isXFA() {
return this._isXFA;
}
get fonts() {
return this._fonts;
}
get pdfAComplianceLevel() {
return this._pdfaComplianceLevel;
}
get pdfVTComplianceLevel() {
return this._pdfvtComplianceLevel;
}
get pdfXComplianceLevel() {
return this._pdfxComplianceLevel;
}
get pdfUAComplianceLevel() {
return this._pdfuaComplianceLevel;
}
get xmpMetadata() {
return this._xmp;
}
get pageCount() {
return this._pageCount;
}
}
exports.DocumentProperties = DocumentProperties;
//# sourceMappingURL=DocumentProperties.js.map