Skip to content

Latest commit

 

History

History

webviewer-annotations-php

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

WebViewer annotations sample - using files and PHP backend

WebViewer is a powerful JavaScript-based PDF Library that is part of the Apryse SDK. It provides a slick out-of-the-box responsive UI that enables you to view, annotate and manipulate PDFs and other document types inside any web project.

This sample demonstrates how to save and load annotations using XFDF files and a PHP backend.

Get your trial key

A license key is required to run WebViewer. You can obtain a trial key in our get started guides, or by signing-up on our developer portal.

Initial setup

Before you begin, make sure your development environment includes Node.js and a PHP development environment such as built-in CLI, XAMPP or AMPPS.

Install

git clone --depth=1 https://github.com/ApryseSDK/webviewer-samples.git
cd webviewer-samples/webviewer-annotations-php
npm install

Run

Serve the root directory of this project using the PHP development environment, and navigate to /client/index.html.

How to use

  • Create annotations with annotations tools in the header
  • Save annotations with the save button in the header
  • Load annotations by refreshing the app
  • You can find annotation data saved into an XFDF file in server/xfdf folder