SimplePDF / simplepdf-embed

PDF editor in the browser – add text, checkboxes, pictures, signatures to PDF files. Merge, rotate PDF pages – iframe, script and React component
https://simplepdf.com/embed
MIT License
239 stars 26 forks source link

How to Clear Old Form inputs when launching the embed pdf #5

Open shreyash-jain opened 6 months ago

shreyash-jain commented 6 months ago

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

bendersej commented 6 months ago

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?