You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

acrobatserviceswrapper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acrobatserviceswrapper

This is a simple, lightweight wrapper to the [Acrobat Services](https://developer.adobe.com/document-services/) REST API. To use this, you will need a set of credentials (a client ID and secret) which can be gotten for free.

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
24
1100%
Maintainers
1
Weekly downloads
 
Created
Source

Acrobat Services Wrapper

This is a simple, lightweight wrapper to the Acrobat Services REST API. To use this, you will need a set of credentials (a client ID and secret) which can be gotten for free.

Usage

Initialize the library with your credentials:

let sw = new ServicesWrapper(process.env.CLIENTID, process.env.CLIENTSECRET);

Upload assets by path and media type:

let filePath = '../source_pdfs/schoolcalendar.pdf';
let mediaType = 'application/pdf';

let asset = await sw.upload(filePath, mediaType);

Note that this wraps the 2 step REST process of creating the asset and uploading the bits.

Call an endpoint:

let job = await sw.createExtractJob(asset);
console.log('Extract job started.');

You can pollJob, which will hit the job status until done.

You can downloadFile to get the result.

And you can downloadWhenDone(job, path) to simplify the above.

FAQs

Package last updated on 03 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts