A job that is used to fetch properties from an input PDF file. The properties are returned in a POJO.

Example

Sample Usage:

        const readStream = fs.createReadStream("<SOURCE_PATH>");

const credentials = new ServicePrincipalCredentials({
clientId: process.env.PDF_SERVICES_CLIENT_ID,
clientSecret: process.env.PDF_SERVICES_CLIENT_SECRET
});

const pdfServices = new PDFServices({credentials});

const inputAsset = await pdfServices.upload({
readStream,
mimeType: MimeType.PDF
});

const params = new PDFPropertiesParams({
includePageLevelProperties: true
});

const job = new PDFPropertiesJob({inputAsset, params});

const pollingURL = await pdfServices.submit({job});

const pdfServicesResponse = await pdfServices.getJobResult({
pollingURL,
resultType: PDFPropertiesResult
});

const pdfProperties = pdfServicesResponse.result.pdfProperties;

Hierarchy (view full)

Constructors

Properties

_inputAsset: Asset
_pdfPropertiesParams?: PDFPropertiesParams

Methods

  • Parameters

    Returns PDFServicesApiRequest

  • Parameters

    • executionContext: ExecutionContext

    Returns void

Generated using TypeDoc