tsgrp / OpenAnnotate

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

Attachments tab does not appear if a file has more than 55 attachments #907

Closed dhruvvora94 closed 3 years ago

dhruvvora94 commented 3 years ago

This was found by Alfresco support when they received a complaint from a client.

If we have more than 55 attachments on a PDF then we do not display the attachments tab.

PDFwith55EmbeddedAttachments-OK PDFwith56EmbeddedAttachments-KO

with55EmbeddedAttachment-Alfresco Digital Workspace 2.2 Release Notes.pdf with56EmbeddedAttachment-Alfresco Digital Workspace 2.2 Release Notes.pdf

sashcraft commented 3 years ago

Customer has come back and thinks this has more to do with the specific PDF rather than the number of attachments. Can provide attachments if requested, or you may be able to access via Hyland VPN or VDI:

\\srv-cdhs1\customerdata\TECHNICAL SUPPORT\38964_23299893

pdf(1).pdf shows the customer's reply and a screenshot of Test pdf 56 attachments.pdf.

dparker841 commented 3 years ago

Closed at Revision # 26940.

AEV ATTACHED DOCS FIX: Fixes an issue that caused the attachments tab to not appear when a document has over 55 attachments.

Changed XFDFAnnotationImpl.getAttachedDocs to create PDFAttached Doc objects by parsing an Aspose Document instead of a PDFBox PDDocument. Similarly changed XFDFAnnotationImpl.getAttachedDocContent to get byte content for an attachment by passing in an Aspose Document instead of a PDFBox PDDocument.

CR: jharkins, mbrouillette