tsgrp / OpenAnnotate

TSG's Browser-based Annotation Tool
8 stars 4 forks source link

Support Fast Webviewing with Overlays #861

Open nwoodbine opened 3 years ago

nwoodbine commented 3 years ago

OpenOverlay relies on OpenPDF, a fork of iText, to apply overlays. iText/OpenPDF do not support Fast Webviewing. Any PDFs with Fast Webviewing enabled will have Fast Webviewing disabled upon application of qn overlay on download.

The solution will be to use Aspose to check if document is linearized before calling OpenOverlay, and if so, re-set the Fast Webviewing flag after the overlay has been applied. See getLinearization and setLinearization in this Aspose documentation.