Libraries and Frameworks
Integrations
This guide shows how to use the Apryse WebViewer SDK for headless, programmatic document processing without rendering the WebViewer UI. This approach is useful when you need to process, convert, or inspect documents directly in your application, or build automated document workflows.
The examples use a simple HTML‑based project to focus on core SDK functionality without UI components. By the end, you’ll be able to:
Before you start:
Apryse collects some data regarding your usage of the SDK for product improvement.
If you wish to continue without data collection, contact us and we will email you a no-tracking trial key for you to get started.
Set up your project by creating a folder and preparing a workspace for building document‑processing workflows with the Apryse WebViewer SDK.
In this step, you’ll manually download the WebViewer package and add it to your project.
WebViewer.zip file into the webviewer-no-ui project folder. Your project structure should look similar to this:In this section, you’ll add a minimal HTML structure and the JavaScript required to run document processing tasks with the Apryse WebViewer SDK. In this headless setup, only the core SDK scripts are loaded, and document workflows are handled entirely through code rather than a full viewer UI.
webviewer-no-ui folder in Visual Studio Code.index.html file in the webviewer-no-ui folder.index.html file:index.html
WebViewer Core provides the foundation for WebViewer functionality. In a typical UI setup, you would include the webviewer.min.js script. In a headless (no‑UI) scenario, you only need to load the core libraries: webviewer-core.min.js and PDFNet.js.
If you don’t require advanced PDFNet functionality, you can use the lighter PDFNetLean.js script instead. It has a smaller footprint, loads faster, and includes the essential PDFNet features without requiring the full API. For this guide, we use the full PDFNet.js library for consistency, though it's not required.
4. Add the following JavaScript to your index.html file, placing it before the closing </body> tag:
index.html
5. Save the index.html file.
Once your project files are in place, serve the webpage so that the Apryse WebViewer SDK can load and run document-processing tasks in the browser. This allows you to verify that your setup is working correctly. We use http-server to preview the page locally in your browser.
1. From your project directory, run the following command to start a local web server:
If prompted, press y to install http-server. A successful output looks similar to:
2. Open the localhost URL from your terminal to view the project in your browser.
3. Paste this URL into your browser to see an alert showing the PDF's page count, then load the page:
4. Paste this URL into your browser to convert the DOCX file to PDF and automatically download the result, then load the page:
In this 6-minute video, learn how to integrate the Apryse WebViewer SDK into your application and build document-processing workflows without a viewer interface.
Integrate the WebViewer SDK without the UI to build document-processing workflows.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales