simplepdf-embed icon indicating copy to clipboard operation
simplepdf-embed copied to clipboard

How to Clear Old Form inputs when launching the embed pdf

Open shreyash-jain opened this issue 10 months ago • 1 comments

Currently I am using the script like <EmbedPDF mode="inline" style={{ width: 900, height: 800 }} documentURL="https://laborlink-media-bucket.s3.ap-south-1.amazonaws.com/internal/exhibit101.pdf" /> But the issue is that for each user I want to create form I am getting prefilled signature and other details, is there a solution to this

shreyash-jain avatar Apr 17 '24 11:04 shreyash-jain

Hey @shreyash-jain!

But the issue is that for each user I want to create form I am getting prefilled signature and other details

SimplePDF automatically caches (in local storage) the filled values – to prevent users from having to fill the same details again if they close the tab or for convenience if they open the same document in the future.

If I understood you correctly, you (or your users) are opening the same document multiple times in a row, and therefore the previously filled values are present when opening the document?

If you can confirm that this is the issue, I could look into disabling that behaviour for simplepdf-embed and instead reset the form values for each opening automatically: would that work for you?

bendersej avatar Apr 18 '24 18:04 bendersej