• 大小: 2.49M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 测试  

资源简介

利用ItextSharp进行签名

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using iTextSharp.text.pdf;
using System.IO;
using Org.BouncyCastle.Pkcs;
using Org.BouncyCastle.X509;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Security;
using System.Collections;
using System.xml;
using System.Configuration;

namespace HZGuoTuPdfSign
{
    class Program
    {
        static void Main(string[] args)
        {
            string exceptionLog = null;
            string resultPath = null;
            PdfReader reader = null;
            FileStream exceptionFs = null;
            FileStream fs = null;
            try
            {
                string fileName = null;
                int x = 0;
                int y = 0;
                int pageNo = 0;
               

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        184  2013-11-27 17:02  HZGuoTuPdfSign\Backup\HZGuoTuPdfSign\App.config

     文件       2384  2013-11-27 17:02  HZGuoTuPdfSign\Backup\HZGuoTuPdfSign\HZGuoTuPdfSign.csproj

     文件        236  2013-11-27 17:02  HZGuoTuPdfSign\Backup\HZGuoTuPdfSign\HZGuoTuPdfSign.csproj.user

     文件       7093  2013-11-27 17:02  HZGuoTuPdfSign\Backup\HZGuoTuPdfSign\Program.cs

     文件       1199  2013-11-27 17:02  HZGuoTuPdfSign\Backup\HZGuoTuPdfSign\Properties\AssemblyInfo.cs

     文件        932  2013-11-27 17:02  HZGuoTuPdfSign\Backup\HZGuoTuPdfSign.sln

    ..A..H.     13824  2013-11-28 09:11  HZGuoTuPdfSign\Backup\HZGuoTuPdfSign.suo

     文件        226  2014-12-06 22:43  HZGuoTuPdfSign\HZGuoTuPdfSign\App.config

     文件     463227  2013-11-27 17:02  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\cache.pdf

     文件        374  2014-12-06 23:10  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\E201102009.log

     文件      29741  2014-12-06 23:08  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\E201102009三墩镇华联村农居建设 - 副本.pdf

     文件      29741  2014-12-06 23:08  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\E201102009三墩镇华联村农居建设.pdf

     文件       9216  2014-12-06 23:01  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\HZGuoTuPdfSign.exe

     文件        226  2014-12-06 22:43  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\HZGuoTuPdfSign.exe.config

     文件      15872  2014-12-06 23:01  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\HZGuoTuPdfSign.pdb

     文件      11608  2014-12-06 23:12  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\HZGuoTuPdfSign.vshost.exe

     文件        226  2014-12-06 22:43  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\HZGuoTuPdfSign.vshost.exe.config

     文件    3837952  2013-11-27 17:02  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\itextsharp.dll

     文件        166  2014-12-06 23:00  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\server.txt

     文件       2361  2013-11-27 17:02  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\test.pfx

     文件      57572  2013-11-27 17:02  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\test.png

     文件      98213  2014-12-06 23:12  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Debug\电子签章\E201102009三墩镇华联村农居建设.PDF

     文件       9216  2014-12-06 22:46  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Release\HZGuoTuPdfSign.exe

     文件        226  2014-12-06 22:43  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Release\HZGuoTuPdfSign.exe.config

     文件      15872  2014-12-06 22:46  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Release\HZGuoTuPdfSign.pdb

     文件      11608  2014-12-06 22:47  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Release\HZGuoTuPdfSign.vshost.exe

     文件        226  2014-12-06 22:43  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Release\HZGuoTuPdfSign.vshost.exe.config

     文件        490  2012-06-02 22:34  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Release\HZGuoTuPdfSign.vshost.exe.manifest

     文件    3837952  2013-11-27 17:02  HZGuoTuPdfSign\HZGuoTuPdfSign\bin\Release\itextsharp.dll

     文件       3966  2014-12-06 22:46  HZGuoTuPdfSign\HZGuoTuPdfSign\HZGuoTuPdfSign.csproj

............此处省略43个文件信息

评论

共有 条评论