@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
58 lines • 1.88 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.ExtractPDFResult = void 0;
/**
* This class encapsulates the result of {@link ExtractPDFJob}.
*/
class ExtractPDFResult {
/**
* Constructs a new `ExtractPDFResult` instance with result content asset, resource asset and resource JSON
* object
*
* @param [content] - result content asset
* @param resource - result resource asset
* @param [contentJSON] - result content json
*/
constructor(resource, content, contentJSON) {
this._content = content;
this._resource = resource;
this._contentJSON = contentJSON;
}
/**
* Returns the {@link Asset} of zip file containing generated resources from extract operation.
*
* @returns {@link Asset}
*/
get resource() {
return this._resource;
}
/**
* Returns the {@link Asset} of JSON file containing extracted content of PDF file, if an internal asset was used
* as input PDF.
*
* @returns {@link Asset}
*/
get content() {
return this._content;
}
/**
* Returns the JSON string containing extracted content of PDF file, if an internal asset was used as input PDF.
*
* @returns the JSON string containing extracted content of PDF file
*/
get contentJSON() {
return this._contentJSON;
}
}
exports.ExtractPDFResult = ExtractPDFResult;
//# sourceMappingURL=ExtractPDFResult.js.map