Closed waspinator closed 5 years ago
Hello @waspinator.
I don't think pdf-lib
would be the place to implement functionality like this. All of the code in the pdf-lib
repo is intended to be environment-agnostic. It should work in any JavaScript environment, whether that be a browser, NodeJS, React Native, etc.. A feature like this would require extensive interaction with the DOM (which is, of course, browser-specific).
That being said, I'd be willing to consider adapting pdf-lib
in order to make it easier to integrate with. But I've only thought about this briefly, so I'm not sure exactly what that would look like.
I could definitely see a new project being built on top of pdf.js
and pdf-lib
to support interactive editing. pdf.js
would be the rendering layer, and pdf-lib
would be the (de)serialization layer. I think most of the work would be in connecting the two layers together, and developing the interactive UI.
Could it support PDF digital signatures?
Is there a plan to support integration with pdf.js or some other viewer to allow for interactive editing? i.e. adobe acrobat in a browser.
an old project: https://github.com/instructure/pdf-annotate.js