簡體   English   中英

將簽名的pdf與其他pdf合並

[英]Merging signed pdf with other pdfs

我目前正在使用itextsharp dll將pdf文檔合並為一個文檔。 問題是itextsharp會跳過所有經過數字簽名的pdf,並在合並期間復制不允許的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);
    }
}

該庫將合並書簽,表單字段,注釋等。但是請注意,數字簽名將失效。

免責聲明:我為圖書館的供應商工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM