tsgrp / OpenAnnotate

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

Line annotations will not show up on browsers via download PDF actions #938

Closed renesaladrigas closed 3 years ago

renesaladrigas commented 3 years ago

The title of this issue is specifically written to explain the problem. Browsers are unable to fully understand the way Aspose writes line annotations in a PDF file. Chrome doesn't display them at all, Firefox displays lines but not arrows. PDFs will display the annotations correctly on readers like Acrobat (only one I have availability to, but assume others work too). See the gif below, noticing how the two files look different after downloading despite traversing basically the same code. aev_line_annotations_no_inline_download

This is problematic because the Print Annotated PDF action directly brings up a browser window for direct printing or download, causing line annotations to be lost on the downloaded PDF. I also assume the printed PDF will not display those but I do not have access to a printer to confirm.

Is there a way in Aspose to prepare the document correctly from inline download?

gsteimer commented 3 years ago

Do the annotations show up if you download to PDF and open in acrobat? What happens if you make the annotation in adobe and then view the doc in a browser? I'm just wondering if this is more a problem with the browser vs. something we're doing or can control. There was a point a while back where Chrome would only show Sticky annotations and nothing else...

renesaladrigas commented 3 years ago

No loss of data is present when AEV creates the document and prepares it for the browser's print dialog. In fact, closing the print view and downloading the PDF that's displayed via pdf.js or other browser based PDF handlers shows that ALL annotations are present in the PDF, as seen in AEV. This is a case of the browser unable to properly interpret the PDF's annotation data, which is out of this product's control.