简体   繁体   English

如何在JS中将HTML表导出为受密码保护的PDF

[英]How to export HTML Table to password protected PDF in JS

First I want to export HTML table data to PDf file using React JS or pure Javascript. 首先,我想使用React JS或纯Javascript将HTML表数据导出到PDf文件。 And PDF file should be password protected. 并且PDF文件应受密码保护。 I came across libraries such as jspdf, node-qpdf and jsreport-pdf-password but not getting how to implement at client side ie React js 我遇到了诸如jspdf,node-qpdf和jsreport-pdf-password之类的库,但没有得到如何在客户端实现的方法,即React js

This may help you. 这可能对您有帮助。 If you are using node.js then you can use node-qpdf . 如果使用的是node.js,则可以使用node-qpdf This is a wrapper around qpdf which supports AES 256, AES 128, RC4 128 & RC4 40 encryption all supported by Adobe Reader. 这是qpdf的包装,它支持Adobe Reader支持的AES 256,AES 128,RC4 128和RC4 40加密。

Also You can check library you use for method like setProtection or something else like in this library here . 您也可以在此处检查用于方法的库,例如setProtection或该库中的其他内容。 There are a lot of parameters You have to check but I am sure you'll handle it :) 有很多参数需要检查,但是我相信您会处理的:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM