Samples

Bookmark

Full-API
Generation
JavaScript
Viewing

The sample code illustrates how to read and edit existing outline items and create new bookmarks using the high-level API.

Compare documents by image, pixels

JavaScript
Viewing

Shows how to render three synchronized panels where the middle panel shows pixel differences between the two documents.

Create and manipulate layers (OCG) - PDFLayers

Extraction
Full-API
Generation
JavaScript
Viewing

This sample demonstrates how to create PDF layers (also known as Optional Content Groups - OCGs). The sample also shows how to extract and render PDF layers.

Flipbook

JavaScript
Viewing

Demonstrates how to extract canvas of each page. The sample uses turn.js to render them.

Implement WebViewer in Salesforce as a Lightning Web Component

Integrating Apryse WebViewer in Salesforce as a Lightning Web Component. Note that Salesforce static resources have file size limitation to 5MB, to safely upload to the Salesforce platform.

Integrate WebViewer into Salesforce to View, Edit, Annotate, and Redact Attachments

How to View, Edit, Annotate and Redact Salesforce Record Attachment Files in a Lightning Web Component.

Integrate WebViewer into a Flutter App to Enable Cross-Platform Document Viewing

Integrating Apryse WebViewer into a Flutter web project.

PDF Comparison by image - ViewerPDFDiff

Full-API
JavaScript
Viewing

This sample illustrates how PDFNetJS can be used to compare two PDF documents and show their difference in WebViewer.

Reader Mode - ReaderMode

Accessibility
Full-API
JavaScript
Viewing

This sample demonstrates Reader Mode in WebViewer.

Viewer optimized PDFs

JavaScript
Optimization
Viewing

Compares viewing an unoptimized PDF with the same viewer optimized PDF side by side

Viewing Documents with WebViewer

JavaScript
Viewing

Shows how to call WebViewer constructor to instantiate and load document. You can load local/remote files of your choice.

Viewing with Custom Server (XOD)

JavaScript
Viewing

Shows how to load XOD files, which are generated from a custom server.

Viewing with WebViewer Server

JavaScript
Viewing
WebViewer Server

Shows how to call WebViewer constructor to instantiate and load document using WebViewer with WebViewer Server. You can upload local files or load files that are publicly accessible.