通过Node.js生成带有数字签名的PDF [英] Generate PDF with digital signature by nodejs

查看:405
本文介绍了通过Node.js生成带有数字签名的PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我尝试通过nodejs生成pdf.

Recently, i tried to generate pdf by nodejs.

最后我找到了 PDFKit .

该库运行良好,但是我需要实现数字签名的一部分.

That library is doing well,but i need to implement the part of digital signature.

但是大多数实现都是针对JAVA或C#,例如iText或VersyPDF.

But most of implementation are for JAVA or C# like iText or VersyPDF.

请给我一些建议...谢谢

Plz give me some suggestion...thx

推荐答案

我目前正在研究 node-signpdf npm程序包(在编写此答案时,版本为0.0.3).可以和签名片段="noreferrer">在测试代码中.

I am currently working on the node-signpdf npm package (at the moment of writing this answer the version is 0.0.3). A readable snippet of PDF generation and signing can be seen in the test code.

我知道这个答案比最初的问题晚了几年,但是我很难弄清楚所有这些,因此希望这个答案对某人有帮助.

I know this answer comes years after the original question but I had pretty hard time figuring all this out so hope this answer helps someone.

这篇关于通过Node.js生成带有数字签名的PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆