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);
}
}