Skip to main content
Participant
January 22, 2021
Answered

Manually triggering the save function

  • January 22, 2021
  • 1 reply
  • 590 views

Is it possible to trigger the save function from outside the frame? I have some UX issues with many other buttons for other usecase-specific functionalities, and not having the save button among them is somewhat confusing to the user. 

    This topic has been closed for replies.
    Correct answer Joel Geraci

    Yes... sort of... I have an example at this CodePen.

    The idea is with every change to the PDF, you create the object to be saved using the Embed API. Your button then executes the save action. In my example, it creates a data URL so you can download the file but you can do whatever you need.

    1 reply

    Joel Geraci
    Community Expert
    Joel GeraciCommunity ExpertCorrect answer
    Community Expert
    January 22, 2021

    Yes... sort of... I have an example at this CodePen.

    The idea is with every change to the PDF, you create the object to be saved using the Embed API. Your button then executes the save action. In my example, it creates a data URL so you can download the file but you can do whatever you need.