UNPKG

@adobe/pdfservices-node-sdk

Version:

The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.

39 lines 1.51 kB
"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.PDFServicesApiExtractResponse = void 0; const CloudAsset_1 = require("../../../io/CloudAsset"); const ObjectUtil_1 = require("../../util/ObjectUtil"); class PDFServicesApiExtractResponse { constructor(content, resource, errorResponse, status) { this._content = content; this._resource = resource; this._errorResponse = errorResponse; this._status = status; } get errorResponse() { return this._errorResponse; } get status() { return this._status; } get content() { if (!ObjectUtil_1.ObjectUtil.isUndefinedOrNull(this._content)) return new CloudAsset_1.CloudAsset(this._content.assetID, this._content.downloadUri); } get resource() { if (!ObjectUtil_1.ObjectUtil.isUndefinedOrNull(this._resource)) return new CloudAsset_1.CloudAsset(this._resource.assetID, this._resource.downloadUri); } } exports.PDFServicesApiExtractResponse = PDFServicesApiExtractResponse; //# sourceMappingURL=PDFServicesApiExtractResponse.js.map