Skip to main content
Participant
September 29, 2023
Answered

PDF Embed API: Annotations API, ANNOTATION_ADDED event not triggering for notes

  • September 29, 2023
  • 12 replies
  • 7666 views

Hello,

I am encountering an issue with the Annotations API. When adding a message to the document with the subtype "note," the ANNOTATION_ADDED event is not being triggered. It does work as expected for other subtypes such as "strikeout," "highlight," "underline," and "shape.". This was working fine a few days ago.

This issue can be tested with the Angular demo (/annotationAPIs/UIConfigurations)

Here, you can observe two events (related to drawing and highlighting marks), but none for note-type marks:

 

Thanks!

    Correct answer Garrett28259082qfbf

    @Raymond Camden we need an answer on this, how is one of the most important annotations of adobe pdf viewer still broken with no response?

     

    It's both add comment via toolbar and "right click" > "add comment"

    12 replies

    Participant
    January 14, 2025

    I am facing the same issue with regards to the ANNOTATION_ADDED event not being triggered for "note" annotation types. This is hindering my ability to implement stick notes into my custom comments sidebar. As mentioned before, this would be fixed with triggering the ANNOTATION_ADDED event when a sticky note is placed on pdf page as opposed to waiting for text to be added.

     

    Any update here @Joel_Geraci @Raymond Camden on whether this will eventually be brought back? Thanks!

     

    Joel Geraci
    Community Expert
    Community Expert
    January 14, 2025

    No update at this time. Trust me, it's frustrating me as well.

    Inspiring
    May 31, 2024

    Any update here @Joel Geraci @Raymond Camden 🙂

    Raymond Camden
    Community Manager
    Community Manager
    May 31, 2024

    No, there was a release May 9th (https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/releasenotes/#may-9-2024) but I don't believe this was addressed.

    Participant
    May 10, 2024

    Hello,

    Any progress on this matter? Or is it at least on the roadmap? The visualization of PDF files and collaborative participation are crucial functionalities of our application. The inability to utilize "note" comments poses a significant inconvenience. While I understand that there may be other priorities, I need to ascertain whether this issue will be addressed at some point, so we can plan accordingly, whether it involves awaiting a solution or considering other alternatives/custom implementations.

    Thank you!

    Participant
    January 12, 2024

    Hi! First of all, sorry for bother you tagging in this post @Joel Geraci We have seen that you are an expert in the community, we want to know if you can give us some help trying to contact some adobe developers for a answer about this major bug.

    Regards!

     

    Raymond Camden
    Community Manager
    Community Manager
    January 12, 2024

    I am not Joel, but as I said above, the bug is filed. Nothing else can be done now. I can say engineering didn't agree it was a bug, I explained how it _was_ absolutely a bug, but for now it's recorded. That's it. I'm sorry to be blunt, but nothing else can do be done now.

    Inspiring
    January 12, 2024

    Didn't agree it was a bug 😮 😮 ??


    This is one of the clearest examples of a bug I've ever seen. If they need a demo of a real application experiencing this bug. Please let me know.

     

    I have a separate workaround that works for the "Add comments" toolbar. Described below

     

    globalAnnotationManager.registerEventListener(async function (event) {
    
        /*if (event.createdBy != createdBy) {
            globalAnnotationManager.unselectAnnotation(event.data.id);
            return;
        }*/
        if (event.type === "ANNOTATION_MODE_STARTED") {
            if (event.data == "note" || event.data == "freetext") {
                // HANDLE however you want, completely blocking the normal input
                return;
            }
            return;
        } 
    
         // Handle regular annotations
    
    }, eventOptions);

     

    Again, this will not work if you right click on the document and press "Add comments". It will also not work if you click on an annotation and press "Add comments"

    Inspiring
    January 5, 2024

    @Raymond Camden any good news in the new year regarding this incredibly vital bug?

    Something as simple as "right click > add comment" not functioning at all, destroys the whole UX

    Raymond Camden
    Community Manager
    Community Manager
    January 5, 2024

    I do not have an update. 

    Inspiring
    January 5, 2024

    Is there any workaround where we can prevent right clicking inside of the iframe?

    Raymond Camden
    Community Manager
    Community Manager
    November 29, 2023

    I am unable to reproduce this. To be clear, what do you mean by 'note'? Garret below mentioned right click/add comment, and when I do, I get an event fired.

    Inspiring
    November 29, 2023

    Sending you video over email

    Raymond Camden
    Community Manager
    Community Manager
    November 29, 2023

    I built this codepen.io which only logs the event. 

     

    https://codepen.io/cfjedimaster/pen/oNmPqBw?editors=1011

     

    When I right click add comment, I get an event fired.

     

    Note that I've seen Embed take 1-2 seconds to 'register' the event so be sure to give it a sec.

    Inspiring
    November 24, 2023

    Still broken!! 

    Garrett28259082qfbfCorrect answer
    Inspiring
    November 29, 2023

    @Raymond Camden we need an answer on this, how is one of the most important annotations of adobe pdf viewer still broken with no response?

     

    It's both add comment via toolbar and "right click" > "add comment"

    Participant
    November 24, 2023

    Any update on this? Still not working

    Participant
    October 10, 2023

    @Raymond Camden please can you provide any input

    Participant
    October 9, 2023

    This is definitively a major bug of Adobe Embed API  3.10.0_3.2.1
    Please advise.