tsgrp / OpenAnnotate

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

Downloading PDF through AEV Disables Table of Contents #860

Closed nwoodbine closed 3 years ago

nwoodbine commented 3 years ago

When downloading the PDF rendition of a Word document that contains a table of contents through AEV, the resulting PDF's table of contents links are not clickable.

This is likely an issue caused by EmbeddedPDFWriter#removeEmbeddedAnnotationsForBurnIn, in which we are aggressively removing annotation components, and not recognizing/skipping TOC links.

Note that this is not an issue with any other download from the application:

ACA - Download Native - Preserves TOC ACA - Download PDF - Preserves TOC AEV - Download Native - Preserves TOC AEV - Download PDF - Flattens TOC

dhruvvora94 commented 3 years ago

Closed with OC commit 26714

PDF WITH INTERNAL LINKS - Making some changes to the download logic so that internal links on PDF's are maintained when an annotated copy of the document is downloaded.

CR - mbrouillette, nengerer