UNPKG

@adobe/pdfservices-node-sdk

Version:

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

39 lines (38 loc) 1.38 kB
import { PDFServicesJobResult } from "./PDFServicesJobResult"; import { Asset } from "../../io/Asset"; /** * This class encapsulates the result of {@link ExtractPDFJob}. */ export declare class ExtractPDFResult implements PDFServicesJobResult { private readonly _content?; private readonly _resource; private readonly _contentJSON?; /** * 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: Asset, content?: Asset, contentJSON?: JSON); /** * Returns the {@link Asset} of zip file containing generated resources from extract operation. * * @returns {@link Asset} */ get resource(): Asset; /** * 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(): Asset | undefined; /** * 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(): JSON | undefined; }