Samples

Add Bookmarks to PDFs Showcase Demo Code Sample

Editing
Office
PDF/A
PDF/UA
UI
Viewing

Add bookmarks to quickly return to specific pages within your PDF document. This code follows the Showcase User Bookmarks demo.

Add and Edit Watermark Showcase Demo Code Sample

Editing
PDF/A
PDF/UA
UI
Viewing

Add and edit watermarks on PDF documents. This follows the Apryse Showcase Watermarks demo.

Bookmarks & Outlines - Sample Code

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.

CAD Title Block Data Extraction Showcase Demo Code Sample

Annotations
Extraction
OCR
PDF/A
PDF/UA
UI
Viewing

Extract key-value data pairs from PDF format CAD drawings with well-formed title blocks.

CAD Viewer Showcase Demo Code Sample

Annotations
Editing
Viewing

View AutoCAD DWG, DWF, DXF, DGN, and RVT

Color Separation Showcase Demo Code Sample

Editing
Forms
UI
Viewing

Manipulate, view, or hide colors in PDF documents, — all on the client side

Compare documents by image, pixels

Full-API
JavaScript
Viewing

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

Create Thumbnail Showcase Demo Code Sample

Editing
Images
Office
PDF/A
PDF/UA
Viewing

Create high resolution thumbnail images from selected document pages

Extract Document Structure Showcase Demo Code Sample

Editing
Forms
PDF/A
PDF/UA
UI
Viewing

Analyze the top two pages and produce a JSON that describes the PDF's structure. This follows the Document Structure Extraction demo on Showcase.

Flipbook

JavaScript
Viewing

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

Image to PDF Showcase Demo Code Sample

Editing
Images
Node.js
PDF/UA
Viewing

Easily convert image formats to PDF, completely client-side

Implement WebViewer in Salesforce as a Lightning Web Component

Full-API
Salesforce
Viewing

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 a Flutter App to Enable Cross-Platform Document Viewing

Cross-Platform
Dart (Flutter Framework)
Viewing

Integrating Apryse WebViewer into a Flutter web project.

Large Files Showcase Demo Code Sample

Editing
Node.js
PDF/UA
Viewing

Display large PDF files in a browser or mobile app quickly and reliably

Layers (OCG) Manipulation - Sample Code

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.

Multi-Tab Support Showcase Demo Code Sample

Accessibility
Editing
Office
PDF/A
PDF/UA
UI
Viewing

Launch and manage multiple documents concurrently across multiple tabs

Online Flipbook Showcase Demo Code Sample

Office
PDF/A
PDF/UA
Viewing

Add page-turning flipbook animation experience to online content

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.

PDF Layers Showcase Demo Code Sample

Editing
Node.js
PDF/UA
Viewing

PDF layer separation capabilities (Optional Content Groups)

PDF Text Extractor Showcase Demo Code Sample

Full-API
OCR
PDF/A
PDF/UA
UI
Viewing

Extract text from PDFs—either from entire pages or highlighted sections only

Reader Mode Sample Code

Accessibility
Full-API
JavaScript
Viewing

This sample demonstrates Reader Mode in WebViewer.

Right-to-Left Language Support Showcase Demo Code Sample

Editing
PDF/A
PDF/UA
UI
Viewing

Enable support for right-to-left language PDFs and Office documents

Secure Digital Signatures Showcase Demo Code Sample

Editing
Forms
PDF/A
PDF/UA
Signing
Viewing

Add digital signatures using cryptographic certificates to create secure PDFs.

Semantic Text Compare Showcase Demo Sample Code

Node.js
PDF/UA
Redaction
Viewing

Compare changes in semantic categories, such as headers, paragraphs, and numbers. This follows the Apryse Showcase: Semantic Text Compare Demo.

Side-by-Side Showcase Demo Code Sample

Editing
Office
UI
Viewing

View and compare PDFs, Office documents, and images with a side-by-side layout

Spreadsheet Editor Showcase Demo Sample Code

Editing
Office
UI
Viewing

XLSX loading, viewing, and editing directly in your browser. This follows the Spreadsheet Editor demo on the Apryse Showcase site.

View, Edit, Annotate, and Redact Attachments in SalesForce

Full-API
Salesforce
Viewing

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

Viewer optimized PDFs

JavaScript
Optimization
Viewing

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

Viewing Office Docs with WebViewer

JavaScript
Viewing

Shows how to call WebViewer constructor to instantiate and load DOCX, XLSX or PPTX. 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.

WebViewer Dark Mode Showcase Demo Code Sample

Accessibility
UI
Viewing

Add Dark/Light mode toggle in WebViewer

XFDF Annotations in PDF Showcase Demo Code Sample

Forms
Node.js
Office
Viewing

Import and export PDF annotations with the XFDF format, as seen in the SFDF Showcase demo.