合并签名pdf与其他pdf



我目前正在使用itextsharp dll将pdf文档合并为一个文档。问题是itextsharp跳过任何数字签名的pdf文件,并在合并期间复制不允许的pdf文件。

是否有任何其他付费或免费的库,可以合并签名pdf与非签名成一个单一的pdf文件?

谢谢,开发人员。

您可以使用Docotic.Pdf库合并已签名和未签名的文档。

下面是一个示例,展示了如何合并两个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);
    }
}

该库将合并书签、表单字段、注释等。但请注意,数字签名将无效。

免责声明:我为库的供应商工作。

最新更新