LegendOfTheFox / DocumentSearch-View

Sample showing how to couple server side document search with client side viewing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document Search Example

Overview

This sample application utilizes both PDFNet and PDFJS.Express to show a search and view workflow. This architecture is not meant for production, rather a starting point to how to work with the two SDKs. Changes you would want to consider would be implementing a real database, Authentication on server endpoints, and proper exception catching and handling. This sample should run as is, there are 3 sample document in the server_documents folder to act as a pseudo database. Feel free to drop your own documents into that directory for testing.

searchWorkflow

Dependencies

  • PDFNet
  • PDFJS.Express
  • Node.JS
  • Express Server
  • CORS

Getting Started

  • Run NPM Install from the root directory
  • Run NPM start
  • The application defaults to Port 3000

API Reference

Disclaimer

Both PDFNet & PDFJS.Express SDKs are commercial solutions. In this sample both SDKs are running in a trial mode, resulting in watermarking on the document displayed. Please reach out to PDFTron https://www.pdftron.com/form/contact-sales/ for PDFNet licensing, PDFJS.Express licesning can be done directly through pdfjs.express website.

About

Sample showing how to couple server side document search with client side viewing


Languages

Language:JavaScript 58.9%Language:EJS 33.2%Language:HTML 6.5%Language:CSS 1.4%