You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,6 @@ Samples showing how to get started with WebViewer in different environments.
52
52
### 3rd Party Integrations
53
53
Samples showing how to integrate and use WebViewer in 3rd party platforms.
54
54
55
-
-[webviewer-ask-ai](./webviewer-ask-ai) - Integrate WebViewer with Artificial Intelligence
56
55
-[webviewer-salesforce](./webviewer-salesforce) - Integrate WebViewer in Salesforce
57
56
-[webviewer-salesforce-attachments](./webviewer-salesforce-attachments) - View Salesforce record attachments in WebViewer
58
57
-[webviewer-mendix](./webviewer-mendix) - Integrate WebViewer into a Mendix low-code app
@@ -80,3 +79,9 @@ Samples showing how to use various WebViewer features.
80
79
-[webviewer-range-request](./webviewer-range-request) - Setup range requests on the backend server for loading linearized PDFs in the WebViewer
81
80
-[webviewer-react-canvasToPDF](./webviewer-react-canvasToPDF) - Export a canvas to PDF with WebViewer
82
81
82
+
### Artificial Intelligence
83
+
Samples showing how to integrate WebViewer with Artificial Intelligence.
84
+
85
+
-[webviewer-ask-ai](./webviewer-ask-ai) - Enable chat-based Q&A, document and selected-text summarization, keyword extraction, and contextual prompts that lets users ask questions about their PDFs
86
+
-[webviewer-redaction-ai](./webviewer-redaction-ai) - Identify and apply redaction of the personal information in the provided PDF
Copyright (c) 2026 Apryse Software Inc. All Rights Reserved.
2
+
WebViewer UI project/codebase or any derived works is only permitted in solutions with an active commercial Apryse WebViewer license. For exact licensing terms refer to the commercial WebViewer license. For licensing, pricing, or product questions, Contact [Sales](https://apryse.com/form/contact-sales).
Add an AI-powered assistant to WebViewer, detect Personally Identifiable Information (PII) in the provided PDF, and apply redaction to the identified information.
4
+
5
+
[WebViewer](https://apryse.com/products/webviewer) is a powerful JavaScript-based PDF Library that is part of the [Apryse SDK](https://apryse.com/).
A license key is required to run WebViewer. You can obtain a trial key in our [get started guides](https://docs.apryse.com/web/guides/get-started), or by signing-up on our [developer portal](https://dev.apryse.com/).
17
+
18
+
## Initial setup
19
+
20
+
Before you begin, make sure the development environment includes [Node.js](https://nodejs.org/en/).
OpenAI is the default backend for this sample. To get started, rename `.env.example` file into `.env` and fill the following:
33
+
34
+
```
35
+
OPENAI_API_KEY=your-openai-api-key-here
36
+
OPENAI_MODEL=your-openai-model-here
37
+
OPENAI_MAX_TOKENS=your-openai-max-tokens-here
38
+
OPENAI_TEMPERATURE=your-openai-temperature-here
39
+
```
40
+
41
+
To use another model, replace the LangChain provider in [server/llmManager.js](https://github.com/ApryseSDK/webviewer-samples/blob/main/webviewer-redaction-ai/server/llmManager.js#L23), install the corresponding provider package, and update the .env variables for that model provider.
42
+
43
+
## Run
44
+
45
+
```
46
+
npm start
47
+
```
48
+
49
+
This will start a server that you can access the WebViewer client at http://localhost:4040/client/index.html, and manage the connection to the OpenAI on backend.
0 commit comments