RelaxedJS / ReLaXed

Create PDF documents using web technologies
ISC License
11.8k stars 428 forks source link

Document Signatures #36

Closed KrishnaPG closed 6 years ago

KrishnaPG commented 6 years ago

How to generate digitally signed documents?

DanielRuf commented 6 years ago

Hi, this is not supported by ReLaXed (out of its scope) and normally requires a certificate or PGP key and some hashing solution in the library.

Adobe Acrobat and PDFX support this.

Zulko commented 6 years ago

PDFs are generated with chromium so we would need chromium to be able to generate signed documents before we can propose that on our end (does that make sense ?)

DanielRuf commented 6 years ago

I'm unsure if this is possible through chromium. Probably possible with node-forge.

Zulko commented 6 years ago

Seems indeed difficult to do, so closing this one. Feel free to reopen if I missed an obvious way to do so.

Zulko commented 6 years ago

Sorry for the noise, but just after writing this I realized that some libraries can do it. I don't want to have this as a core feature, because all these libraries require to install non-JS platform-specific software, but they could be added as plugins adding a "post-pdf-generation" hook.

DanielRuf commented 6 years ago

could be added as plugins

Definitely. This should be the core here and signatures and other things can be added as plugins.