Jump to content
Sign in to follow this  
boris.nihil

digital sign pdf

Recommended Posts

hi,

does anybody uses securebridge from DEVART to sign a pdf,

i dont know is it good code:

var
    signed, bajtovi: TBytes;
  fajl:tfile;

ScMemoryStorage1.ImportFromPKCS12('c:\_Projekti\028.pfx', 'Pero412');
   bajtovi := fajl.readallbytes('c:\_Projekti\Svjedodzba.PDF');
  signed:= ScMemoryStorage1.Certificates.Certificates[0].Sign(bajtovi,haSHA1,pmPKCS1);

   SaveBytesToFile(bajtovi,'c:\_Projekti\Svjedodzba_signed.PDF');

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×