EldoS | Feel safer!

Software components for data protection, secure storage and transfer

I sign a PDF twince with two certificate and get "Miscellaneous change

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#35473
Posted: 01/08/2016 16:00:41
by Desarrollo Alpha (Standard support level)
Joined: 11/30/2015
Posts: 15

Hello, I sign a PDF twince with two certificate.
First using iTextSharp
image 1

and then with SBB getting
Image 2

How I do in SecureBlackBox to hide the message "1 Miscellaneous Change(s)"?
like Picture 1
these are the documents sample

http://www.alpha2000.com.ar/sistemas/clientes/sign1.pdf
http://www.alpha2000.com.ar/sistemas/clientes/sign2.pdf

I used two certificate to sign a same document.
I do this with iTextSharp, obtain the result in the picture 1.
I do this with SBB and obtain te resutl in the picture 2.
and Adobe Acrobat Reader DC 2015 Release Version 2015.009.20079

Code
    
TElPDFDocument Document;
TElPDFPublicKeySecurityHandler PublicKeyHandler;
TElMemoryCertStorage certStorage;

Document = new TElPDFDocument();
Document.OwnActivatedSecurityHandlers = true;
PublicKeyHandler = new TElPDFPublicKeySecurityHandler();
certStorage = new TElMemoryCertStorage();
string tempPathPdf = Path.GetTempFileName();
bool Success = false;
try
{
   System.IO.File.Copy(pathPdf, tempPathPdf, true);

   FileStream F = new FileStream(tempPathPdf, FileMode.Open, FileAccess.ReadWrite);
   try
   {
       if (Document.Encrypted)
       {
      throw new Exception("El documento esta encriptado y no puede se firmado");
       }
       int index = Document.AddSignature();
       TElPDFSignature s = Document.get_Signatures(index);
       s.Handler = PublicKeyHandler;
       certStorage.Clear();
       certStorage.Add(Cert, true);
       PublicKeyHandler.CertStorage = certStorage;
       PublicKeyHandler.SignatureType = SBPDFSecurity.TSBPDFPublicKeySignatureType.pstPKCS7SHA1;
       //PublicKeyHandler.CustomName = "Adobe.PPKMS";
       Success = true;
   }
   finally
   {
       Document.Close(Success);
   }
}
finally
{
   certStorage.Clear();
   F.Close();
}
#35474
Posted: 01/08/2016 16:43:16
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us,

Quote
How I do in SecureBlackBox to hide the message "1 Miscellaneous Change(s)"?

Are you using the latest build?
If no, could you please try to sign the document using the latest version. In this version we have added a workaround for this issue with "Miscellaneous Change(s)" warning.
#35496
Posted: 01/11/2016 07:49:36
by Desarrollo Alpha (Standard support level)
Joined: 11/30/2015
Posts: 15

I'm using SecureBlackbox.PDF version 14.0.285.0.

Is it the latest version?
#35498
Posted: 01/11/2016 07:51:23
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

The latest one is 14.0.286.
#35499
Posted: 01/11/2016 08:14:10
by Desarrollo Alpha (Standard support level)
Joined: 11/30/2015
Posts: 15

Ok. I download the latest version, and test.
#35502
Posted: 01/11/2016 10:04:57
by Desarrollo Alpha (Standard support level)
Joined: 11/30/2015
Posts: 15

thank you. it works ok.
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 2551 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!