Skip to content

Mohammed-AbdulRahman-Apryse/webviewer-server-side-search

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebViewer - Server-Side Search Integration

WebViewer is a powerful JavaScript-based PDF Library that is part of the Apryse SDK. It allows you to view and annotate PDF files on your web app with a fully customizable UI.

WebViewer UI

This sample adds a WebViewer to a Node.js project that enables a search feature as server-side and overrides the default client search.

Initial setup

Before you begin, make sure your development environment includes Node.js.

Install

git clone https://github.com/ApryseSDK/webviewer-server-side-search
cd webviewer-server-side-search
npm install

Setting License

Follow the steps below to set the license key in this sample:

  • Locate the file /server/api.js
  • Replace 'YOUR_LICENSE_KEY' with your license
  • Save the file

Run

npm start

This will start a server that you can access the WebViewer client at http://localhost:8080/. The search REST API is available at http://localhost:8080/api/search using GET.

How to search

  • Click the search button at the top-right corner and execute a search.
  • The search performs in the backend and returns a list of hits for the current document. You can navigate the document from the list.

WebViewer APIs

WebViewer: Feature-Rich JavaScript PDF Viewer.

Guides for Server/Desktop PDF library.

License

For licensing, refer to License.

About

Sample code for integrating server side search for PDFTron WebViewer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 77.6%
  • HTML 15.4%
  • ASP.NET 7.0%