如何在C#中创建密码和过期日期受保护的pdf [英] How to create password and expire date protected pdf in C#

查看:78
本文介绍了如何在C#中创建密码和过期日期受保护的pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中创建密码和过期日期受保护的PDF,如果有任何好友的想法请帮助我



我尝试了什么:



i创建了受密码保护的pdf但我们需要pdf密码和过期日期受保护

How to create password and expire date protected PDF in c# ,if any buddy idea please help me

What I have tried:

i have created pdf with password protected but we require pdf password and expire date protected

推荐答案

咨询您正在使用的PDF库文档,以查看它是否支持创建受密码保护的文件以及如何执行此操作。 PDFSharp和iTextSharp都支持这样做。



PDF格式不支持密码或内容的过期日期。无论多大年纪,您都可以随时打开PDF。
Consult the documentation on the PDF library you're using to see if it supports creating password protected files and how to do it. PDFSharp and iTextSharp both support doing this.

The PDF format does not support expiration dates on passwords nor content. You can always open a PDF no matter how old it is.


这篇关于如何在C#中创建密码和过期日期受保护的pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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