Auto Save Form Fillable PDF

Use case or problem

I would like to edit a form fillable pdf and have it automatically save in place when I click away to another note, rather than having to find the file in the OS save window and replace it.

Proposed solution

if (prev.ext === "pdf" && prev.modified === true) {
   fs.writeFile('/path/to/foo.pdf', newContent, err => {
       if (err) console.error(err);
   }
}
1 Like

Anyone has a better solution that would work now? Currently it’s too easy to lose filled in fields.