@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
47 lines • 1.41 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.SplitPDFResult = void 0;
/**
* This class encapsulates the result of {@link SplitPDFJob}.
*/
class SplitPDFResult {
/**
* Constructs a new `SplitPDFResult` instance
*
* @param [assets] - List of result assets
* @param [asset] - The zipped asset associated with the {@link SplitPDFJob} result
*/
constructor(assets, asset) {
this._assets = assets;
this._asset = asset;
}
/**
* Returns the list of result assets, if an internal asset was used as input PDF.
*
* @returns List of {@link Asset}
*/
get assets() {
return this._assets;
}
/**
* Returns the zipped asset associated with the {@link SplitPDFJob} result, if an external asset was used as
* input PDF.
*
* @returns {@link Asset}
*/
get asset() {
return this._asset;
}
}
exports.SplitPDFResult = SplitPDFResult;
//# sourceMappingURL=SplitPDFResult.js.map