当前位置: 首页 > news >正文

做公司网站需要什么程序ASP网站开发步骤与过程

做公司网站需要什么程序,ASP网站开发步骤与过程,自创游戏的软件,做公司简介的开源网站随着 PDF 文档在商业中越来越流行#xff0c;确保其真实性已成为一个关键问题。使用基于证书的签名对 PDF 进行签名可以保护内容#xff0c;还可以让其他人知道谁签署或批准了该文档。在本文中#xff0c;您将了解如何使用不可见或可见签名对 PDF 进行数字签名#xff0c;以…随着 PDF 文档在商业中越来越流行确保其真实性已成为一个关键问题。使用基于证书的签名对 PDF 进行签名可以保护内容还可以让其他人知道谁签署或批准了该文档。在本文中您将了解如何使用不可见或可见签名对 PDF 进行数字签名以及如何使用Spire.PDF for .NET从 PDF 中删除数字签名。 Spire.PDF for .NET 是一款独立 PDF 控件用于 .NET 程序中创建、编辑和操作 PDF 文档。使用 Spire.PDF 类库开发人员可以新建一个 PDF 文档或者对现有的 PDF 文档进行处理且无需安装 Adobe Acrobat。 E-iceblue 功能类库Spire 系列文档处理组件均由中国本土团队研发不依赖第三方软件不受其他国家的技术或法律法规限制同时适配国产操作系统如中科方德、中标麒麟等兼容国产文档处理软件 WPS如 .wps/.et/.dps 等格式 Spire.PDF for.net下载   Spire.PDF for java下载 安装适用于 .NET 的 Spire.PDF 首先您需要将 Spire.PDF for .NET 包中包含的 DLL 文件添加为 .NET 项目中的引用。DLL 文件可以从此链接下载或通过NuGet安装。 PM Install-Package Spire.PDF 向 PDF 添加不可见的数字签名 以下是使用 Spire.PDF for .NET 将不可见数字签名添加到 PDF 的步骤。 创建一个PdfDocument对象。使用PdfDocument.LoadFromFile()方法加载示例 PDF 文件。初始化PdfCertificate对象时加载 pfx 证书文件。根据证书创建PdfSignature对象。通过PdfSignature对象设置文档权限。使用PdfDocument.SaveToFile()方法将文档保存到另一个 PDF 文件。 【C】  using Spire.Pdf; using Spire.Pdf.Security;namespace AddInvisibleSignature { class Program { static void Main(string[] args) { //Create a PdfDocument object PdfDocument doc new PdfDocument();//Load a sample PDF file doc.LoadFromFile(C:\\Users\\Administrator\\Desktop\\sample.pdf);//Load the certificate PdfCertificate cert new PdfCertificate(C:\\Users\\Administrator\\Desktop\\MyCertificate.pfx, e-iceblue);//Create a PdfSignature object PdfSignature signature new PdfSignature(doc, doc.Pages[doc.Pages.Count - 1], cert, MySignature);//Set the document permission to forbid changes but allow form fill signature.DocumentPermissions PdfCertificationFlags.ForbidChanges | PdfCertificationFlags.AllowFormFill;//Save to another PDF file doc.SaveToFile(InvisibleSignature.pdf); doc.Close(); } } } 【VB.NET】 Imports Spire.Pdf Imports Spire.Pdf.Security Namespace AddInvisibleSignature Class Program Shared Sub Main(ByVal args() As String) Create a PdfDocument object Dim doc As PdfDocument New PdfDocument() Load a sample PDF file doc.LoadFromFile(C:\\Users\\Administrator\\Desktop\\sample.pdf) Load the certificate Dim cert As PdfCertificate New PdfCertificate(C:\\Users\\Administrator\\Desktop\\MyCertificate.pfx,e-iceblue) Create a PdfSignature object Dim signature As PdfSignature New PdfSignature(doc,doc.Pages(doc.Pages.Count - 1),cert,MySignature) Set the document permission to forbid changes but allow form fill signature.DocumentPermissions PdfCertificationFlags.ForbidChanges | PdfCertificationFlags.AllowFormFill Save to another PDF file doc.SaveToFile(InvisibleSignature.pdf) doc.Close() End Sub End Class End Namespace 向 PDF 添加可见的数字签名 以下是使用 Spire.PDF for .NET 将可见数字签名添加到 PDF 的步骤。 创建一个PdfDocument对象。使用PdfDocument.LoadFromFile()方法加载示例 PDF 文件。初始化PdfCertificate对象时加载 pfx 证书文件。创建一个PdfSignature对象并指定其在文档上的位置和大小。设置签名详细信息包括日期、名称、位置、原因、手写签名图像和文档权限。使用PdfDocument.SaveToFile()方法将文档保存到另一个 PDF 文件。 【C】 using System; using System.Drawing; using Spire.Pdf; using Spire.Pdf.Security; using Spire.Pdf.Graphics; namespace AddVisibleSignature { class Program { static void Main(string[] args) { //Create a PdfDocument object PdfDocument doc new PdfDocument(); //Load a sample PDF file doc.LoadFromFile(C:\\Users\\Administrator\\Desktop\\sample.pdf); //Load the certificate PdfCertificate cert new PdfCertificate(C:\\Users\\Administrator\\Desktop\\MyCertificate.pfx, e-iceblue); //Create a PdfSignature object and specify its position and size PdfSignature signature new PdfSignature(doc, doc.Pages[doc.Pages.Count - 1], cert, MySignature); RectangleF rectangleF new RectangleF(doc.Pages[0].ActualSize.Width - 260 - 54 , 200, 260, 110); signature.Bounds rectangleF; signature.Certificated true; //Set the graphics mode to ImageAndSignDetail signature.GraphicsMode GraphicMode.SignImageAndSignDetail; //Set the signature content signature.NameLabel Signer:; signature.Name Gary; signature.ContactInfoLabel Phone:; signature.ContactInfo 0123456; signature.DateLabel Date:; signature.Date DateTime.Now; signature.LocationInfoLabel Location:; signature.LocationInfo USA; signature.ReasonLabel Reason:; signature.Reason I am the author; signature.DistinguishedNameLabel DN:; signature.DistinguishedName signature.Certificate.IssuerName.Name; //Set the signature image source signature.SignImageSource PdfImage.FromFile(C:\\Users\\Administrator\\Desktop\\handwrittingSignature.png); //Set the signature font signature.SignDetailsFont new PdfTrueTypeFont(new Font(Arial Unicode MS, 12f, FontStyle.Regular)); //Set the document permission to forbid changes but allow form fill signature.DocumentPermissions PdfCertificationFlags.ForbidChanges | PdfCertificationFlags.AllowFormFill; //Save to file doc.SaveToFile(VisiableSignature.pdf); doc.Close(); } } } 【VB.NET】 Imports System Imports System.Drawing Imports Spire.Pdf Imports Spire.Pdf.Security Imports Spire.Pdf.Graphics Namespace AddVisibleSignature Class Program Shared Sub Main(ByVal args() As String) Create a PdfDocument object Dim doc As PdfDocument New PdfDocument() Load a sample PDF file doc.LoadFromFile(C:\\Users\\Administrator\\Desktop\\sample.pdf) Load the certificate Dim cert As PdfCertificate New PdfCertificate(C:\\Users\\Administrator\\Desktop\\MyCertificate.pfx,e-iceblue) Create a PdfSignature object and specify its position and size Dim signature As PdfSignature New PdfSignature(doc,doc.Pages(doc.Pages.Count - 1),cert,MySignature) Dim rectangleF As RectangleF New RectangleF(doc.Pages(0).ActualSize.Width - 260 - 54,200,260,110) signature.Bounds rectangleF signature.Certificated True Set the graphics mode to ImageAndSignDetail signature.GraphicsMode GraphicMode.SignImageAndSignDetail Set the signature content signature.NameLabel Signer: signature.Name Gary signature.ContactInfoLabel Phone: signature.ContactInfo 0123456 signature.DateLabel Date: signature.Date DateTime.Now signature.LocationInfoLabel Location: signature.LocationInfo USA signature.ReasonLabel Reason: signature.Reason I am the author signature.DistinguishedNameLabel DN: signature.DistinguishedName signature.Certificate.IssuerName.Name Set the signature image source signature.SignImageSource PdfImage.FromFile(C:\\Users\\Administrator\\Desktop\\handwrittingSignature.png) Set the signature font signature.SignDetailsFont New PdfTrueTypeFont(New Font(Arial Unicode MS, 12f, FontStyle.Regular)) Set the document permission to forbid changes but allow form fill signature.DocumentPermissions PdfCertificationFlags.ForbidChanges | PdfCertificationFlags.AllowFormFill Save to file doc.SaveToFile(VisiableSignature.pdf) doc.Close() End Sub End Class End Namespace 以上便是如何将加密或解密 PDF 文件如果您有其他问题也可以继续浏览本系列文章获取相关教程~
http://www.zqtcl.cn/news/967150/

相关文章:

  • 咨询公司网站源码手机优化软件哪个好用
  • 行业网站模板小型影视网站源码
  • 湖北网站建站系统哪家好微信小程序怎么注销账号
  • 温州网站推广公司沈阳网站建设服务电话
  • 2019年的阜南县建设修路网站洛阳哪里有做网站的
  • 家里电脑可以做网站服务器吗佛山网络公司哪家最好
  • 做网站属于无形资产还是费用网站制作二维码
  • ps为什么做不了视频网站最近做网站开发有前途没
  • 平面设计师参考网站做网站建设推广好做吗
  • 网站被别的域名绑定泰安做网站网络公司
  • 建设部网站业绩如何录入免费素材图片下载
  • 佛山美容网站建设如何有效的推广宣传
  • 网站全屏轮播怎么做nginx 代理 wordpress
  • 海淀公司网站搭建二级目录怎么做网站
  • 石家庄定制网站建设凡科建站做的网站收录慢吗
  • 海口企业自助建站品牌建设三年行动方案
  • 网站建设流程平台域名分析网站
  • 旅游类网站如何做推广随机网站生成器
  • 竖导航网站做网站被坑
  • 散文古诗网站建设目标做公司网站要钱吗
  • 营销网站建设规划小浪底水利枢纽建设管理局网站
  • 建站的目的网站的月度流量统计报告怎么做
  • 网站备案添加域名拼多多代运营公司十大排名
  • 网站访客qq获取系统 报价客户管理系统入口
  • 院网站建设情况报告怎么在虚拟主机上建网站
  • 厦门网站建设系统鞍山百度网站怎么制作
  • html5建设网站app开发公司不退款该怎么投诉
  • 南昌网站建设公务手工制作代加工接单网
  • 排名好的手机网站建设你知道吗 网站
  • 网站信息组织优化成都网站制作计划