'How to open encrypted by electronic signature pdf file using PdfSharp

Yo, Im trying to open pdf file that is encrypted with electronic signature. I using code like below. I get error : "The PDF document is protected with an encryption not supported by PDFsharp." I need to open this file to copy pages to new pdf ( need to merge encrypted pdf and other pdf). Can Anybody help me?

 public static void MergePdfs(List<string> allPdfFilesForInvoice)
    {
        string invoicePdfNameFull = allPdfFilesForInvoice.First();
        invoicePdfNameFull = invoicePdfNameFull.Replace(".pdf", "");
        invoicePdfNameFull = invoicePdfNameFull.Replace(".PDF", "");

        PdfDocument outDocument = new PdfDocument();

        for (int i = 0; i < allPdfFilesForInvoice.Count; i++)
        {
            string invoiceFilesPath = filePath + @"\" + allPdfFilesForInvoice[i];
            PdfDocument input = PdfReader.Open(invoiceFilesPath, PdfDocumentOpenMode.Import);

            CopyPages(input, outDocument);
            outDocument.Save(savePdfsPath + @"\" + invoicePdfNameFull + "_kpl.pdf");

            input.Close();
            input.Dispose();

        }

        outDocument.Close();
        outDocument.Dispose();

        DirectoryOperations.DeleteMergedPdfFiles(allPdfFilesForInvoice);
    }

EDIT: there is no password - only encryption is signature



Solution 1:[1]

Adding AES-128 encryption works fine. Also printing file by adobe that @KJ linked works Thank you for respond guys.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 0dynTheMutant