←选择平台

AssemblyEnabled财产

总结
指示是否可以从PDF文档中添加或删除页面。
语法
c#
VB
c++
Java
公共保龄球AssemblyEnabled {得到;}
公共财产AssemblyEnabled作为布尔
公共布尔getAssemblyEnabled ();公共无效setAssemblyEnabled (布尔booleanValue);
公共财产保龄球AssemblyEnabled {保龄球get ();无效集(保龄球);

属性值

真正的允许外部查看者和编辑从PDF文档中添加或删除页面;否则,就是.默认值为真正的

讲话

的价值AssemblyEnabled仅用于保护设置了所有者密码的PDF文件OwnerPassword

的价值AssemblyEnabled被忽略,被认为是真正的的值EditEnabled属性设置为真正的

例子
c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.Controls;使用Leadtools.Drawing;使用Leadtools.ImageProcessing;使用Leadtools.Pdf;使用Leadtools.Svg;使用Leadtools.WinForms;///此示例将使用用户密码和所有者密码加密PDF文件并限制打印。公共无效PDFFileSecurityOptionsExample ()字符串sourceFileName = Path.Combine(LEAD_VARS.ImagesDir,@“Leadtools.pdf”);字符串destinationFileName = Path.Combine(LEAD_VARS.ImagesDir,@“LEAD_EncryptedNoPrint.pdf”);PDFFile =PDFFile (sourceFileName);//设置安全选项pdfFile。SecurityOptions =PDFSecurityOptions ();pdfFile.SecurityOptions.UserPassword =“领导”pdfFile.SecurityOptions.OwnerPassword =“LEAD_SECRET”pdfFile.SecurityOptions.PrintEnabled =pdfFile.SecurityOptions.HighQualityPrintEnabled =pdfFile.SecurityOptions.EncryptionMode = PDFEncryptionMode.RC128Bit;//加密文件,保存到目标文件pdfFile。转换(1,-1,destinationFileName);静态LEAD_VARS公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”
进口Leadtools进口Leadtools。编解码器进口Leadtools.Pdf进口Leadtools。WinForms进口Leadtools.Svg进口Leadtools。ImageProcessing“这个例子将使用用户密码和所有者密码加密PDF文件,并限制打印。公共PDFFileSecurityOptionsExample ()昏暗的sourceFileName作为字符串= Path.Combine (LEAD_VARS.ImagesDir“Leadtools.pdf”昏暗的destinationFileName作为字符串= Path.Combine (LEAD_VARS.ImagesDir“LEAD_EncryptedNoPrint.pdf”昏暗的pdfFile作为PDFFile =PDFFile (sourceFileName)设置安全选项pdfFile。SecurityOptions =PDFSecurityOptions ()pdfFile.SecurityOptions.UserPassword =“领导”pdfFile.SecurityOptions.OwnerPassword =“LEAD_SECRET”pdfFile.SecurityOptions.PrintEnabled =pdfFile.SecurityOptions.HighQualityPrintEnabled =pdfFile.SecurityOptions.EncryptionMode = PDFEncryptionModeRC128Bit'通过保存到目标文件对文件进行加密pdfFile。转换(1,-1,destinationFileName)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

Leadtools.Pdf组装
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领德科技有限公司版权所有。