Skip to main content
Participant
June 21, 2021
Question

Force saving of PDF annotations

  • June 21, 2021
  • 1 reply
  • 370 views

I am using a modified ViewSDKClient.es6 and have registered a save callback. This works perfectly when the user presses the Save button and also every 5 seconds. It also gives a warning when I try to close the tab before the PDF has been saved. I need to close one last loophole for losing changes: when I programmatically create a new ViewSDKClient for a different PDF file in the same tab, in the same space.

 

I could call my save callback, but I don't know how to access the fileContent manually. 

 

Alternatively, is there some way to have ViewSDKClient call the save function before it is garbage collected  (an equivalent of the "componentWillUnmount" function from React) ? 

 

Thanks a lot!

    This topic has been closed for replies.

    1 reply

    Participant
    June 28, 2021

    @Matthias5C06 thank you for reporting this. We have added this enhancement request in our backlog and will be looking into it.