简体   繁体   English

将签名的pdf与其他pdf合并

[英]Merging signed pdf with other pdfs

I am currently using itextsharp dll to merge pdfs documents into one document. 我目前正在使用itextsharp dll将pdf文档合并为一个文档。 The problem is itextsharp skips any pdfs that are digitally signed and copy not allowed pdfs during merge. 问题是itextsharp会跳过所有经过数字签名的pdf,并在合并期间复制不允许的pdf。

Is there any other paid or free libraries that can merge signed pdfs with non signed into a single pdf document? 是否有其他付费或免费库可以将已签名的pdf与未签名的pdf合并为一个pdf文档?

Thanks, Developer. 谢谢,开发人员。

You can merge signed and non signed documents using Docotic.Pdf library . 您可以使用Docotic.Pdf库合并已签名和未签名的文档。

Here is a sample that shows how to merge two PDF documents: 这是显示如何合并两个PDF文档的示例:

public static void MergeFiles(string output, params string[] inputFiles)
{
    using (PdfDocument doc = new PdfDocument())
    {
        foreach (string file in inputFiles)
            doc.Append(file);

        // delete the first (automatically inserted) page
        doc.RemovePage(0);

        doc.Save(output);

        System.Diagnostics.Process.Start(output);
    }
}

The library will merge bookmarks, form fields, annotations etc. But please note that digital signatures will be invalidated. 该库将合并书签,表单字段,注释等。但是请注意,数字签名将失效。

Disclaimer: I work for the vendor of the library. 免责声明:我为图书馆的供应商工作。

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

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