I got a problem.
We are using aspose to merge multiple pdf files, after that I do classic post processing on it via aspose pdf to add metadata, convert it to pdf_A_3U, save it and send to diff part of system where they sign it, but signed pdf I get back from them has invalid signature.
When we tried debug it and find source of our problem, we pin point it to pdf Concatenate, because when we send just solo pdf without Concatenate, it get signed without problem and we have green, but when all 4 are Concatenate we get invalid sign.
We tried even merging just 2 of them via demo here on aspose.com for it and still invalid sign. 1.PDF (132.5 KB)
It turns out they are not using aspose to do final sign, but something they are calling blackbox, no idea what is that.
For code I tried everything.
this is last one I tried with because I am at stage where I am trying even stupid things that I could try because I run out of normal ones already
public static void SestavitPDF(List outputFiles, string outputFile)
{
PdfFileEditor pdfEditor = new PdfFileEditor();
pdfEditor.CopyLogicalStructure = true;
pdfEditor.CopyOutlines = true;
pdfEditor.KeepActions = true;
pdfEditor.KeepFieldsUnique = false;
pdfEditor.MergeDuplicateLayers = true;
pdfEditor.MergeDuplicateOutlines = true;
pdfEditor.RemoveSignatures = true;
pdfEditor.PreserveUserRights = false;
but we tried even basic and failed too
public static void SestavitPDF(List outputFiles, string outputFile)
{
PdfFileEditor pdfEditor = new PdfFileEditor();
try
{
pdfEditor.Concatenate(outputFiles.ToArray(), outputFile);
}
finally
{
pdfEditor = null; // Zrušte referenci na editor //GC.Collect(); // Spusťte GC pro diagnostiku
}
}
this is one of parts we tried to sign and it was fine k5b54lfi.lvx.PDF (154.8 KB)
I even tried to downgrade aspose pdf to 23.2.0 and same problem. Tried even merging 1 solo pdf and got same result, invalid signatures. concatenate_24_12_0.pdf (127.4 KB)
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-58911
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.