-
Notifications
You must be signed in to change notification settings - Fork 5
View Annotated PDF Action with PDF.js #533
Comments
After looking into the issue, this is an issue with PDF.js support for annotations at the moment. If you look at the annotation data that comes back in
Only sticky note annotations have the Adobe seems to be doing something special to "burn" the annotations into the actual content of the PDF, which is why those annotations are visible in PDF.js. You can confirm that Adobe does something special by opening a burned in PDF from OpenAnnotate in Adobe, save that PDF and then upload that PDF to the PDF.js viewer (the annotations will then be visible). We decided to hold off on working on this anymore until PDF.js finishes their re-write of the annotations layer. |
So this is interesting:
So - I think the problem may not necessarily be with PDF.js, but rather with the way we're burning in the annotations. @benallenallen - feel free to reply with any thoughts / ideas... |
Lowering the priority of this since we now have OA integration in the HPI stage. |
The "Show annotated version in document viewer" admin action seems to not display annotations as we would expect.
When this is on, the getAnnotatedPDF call produces a pdf that burns the annotations onto the PDF so that the viewer should be able to display the annotations. It seems like only the "Sticky Note" type annotations are being displayed when this endpoint is hit.
A few leads/details:
The sticky notes work, so is iText "incorrectly" burning in the annotations that are not properly following the spec so that viewer.js cannot display them? My guess is that it could be viewer.js's problem since they only recently have started displaying annotations.
When I hit the getAnnotatedPdf endpoint and view the PDF directly in Acrobat, everything works as would be expected
The text was updated successfully, but these errors were encountered: