Headless PDF Annotation
It’s possible to apply annotation operations without the need to present any user interface (UI) to the user.
Standalone
In Standalone mode of PSPDFKit for Web, you can perform the operation using JavaScript in the browser by setting the headless
option as true
when loading the JavaScript library. This indicates you don’t want a UI:
PSPDFKit.load({ // ... headless: true }) .then((instance) => { // Apply your operations. })
Once the SDK is loaded, you can apply any of our operations as normal.
Server-Backed
When using the Server-Backed operational mode, a variety of operations are available server-side. See the Document Engine documentation for additional information.