Today we are proud to announce the PDF.js Express Utility API. This REST API can be used to perform actions that are not supported by PDF.js Express on its own, such as extracting and merging annotations and applying watermarks.
We also released a utility package to help you easily interact with the APIs. The package works on both the server and client, and is the recommended way of using the API. Find more information about the package here.
To get started with the API, you must have an active PDF.js Express license.
Once you have a license, head over to the profile page and find the API keys section. Here there are options for enabling the API and getting your license keys.
What can it do?
The PDF.js Express REST API can currently perform the following actions:
This allows you to provide the following workflows to your users:
- Open users existing documents with annotations
- Save a users annotations into a document when they download it
- Watermark a document if your user is just trialing your service
The pricing for using the REST API is as follows (calculated monthly):
- 0-500 actions: $0 (free)
- Every 5000 actions after: $49 USD
- 50,000+ actions: Contact us
This works out to the following:
- 0-500: $0 USD
- 501-5500: $49 USD
- 5501-10500: $98 USD
- 10501-15500: $147 USD
After 50,000 actions, your API keys will still work, but we will contact you to discuss the next steps in scaling up your application.
Each successful operation counts as one action. Errors do not count as actions.
We hope you find the PDF.js Express API useful. If you have any suggestions or run into any problems, feel free to head over to the pdfjs.community forums and create a topic. We will be sure to respond to you quickly!
Thank you for trying PDF.js Express!