How to stamp and sign a PDF already signed without invalidating previous signature?

Question: Some plug-ins and programs can help me stamp PDF but is there any example or tutorial how to do this using .ASP?  I need to take a signed PDF and stamp an image on all pages and also add another signature. The first signature on the document must be valid when open the file. Stamp an image... By means of an annotation or in the content? Adding another signature only is a problem if the initial signature forbids that. Is there a solution on VeryPDF?

Answer: When you require that the first signature on the document must be valid when open the file, I assume you foremost talk about opening in a current Adobe Reader version.In that case you first of all must be aware that the allowed and disallowed changes depend on the first signature itself. Have a look at this answer for information on "Allowed and disallowed changes" as considered by Adobe since version 9 of its Acrobat & Reader.

         Thus, to take a signed PDF and stamp an image on all pages and also add another signature and not invalidate (in the eyes of Adobe software) the initial signature in the process, that signed PDF must either be uncertified (i.e. the initial signature is merely an approval signature) or be Certified with annotations, form fill-in, and digital signatures, allowed (i.e. the initial signature is a certification signature with those types of changes allowed) and have an empty signature field for you to put your signature into. If that signed PDF already contains multiple signatures, neither of them by means of Locking information shall have added any additional restrictions.(Furthermore I assume the PDF neither is encrypted nor does contain dynamic XFA forms; that would complicate things even more.)

  According to your needs, maybe you can have a free trial of this software: VeryPDF PDF Stamp COM, by which you can stamp PDF and sign PDF already singed without invalidating previous signature. Here are some ASP code for your reference:

id = oTest.veryOpenEx(szPDFFile, "d:\testtt\1.pdf")

If (id > 0) Then
page = 1
pagecount = oTest.veryGetFunctionEx(id, 206, 0, 0, 0, 0)
For page = 1 To pagecount   
left = oTest.veryGetFunctionEx(id,                        
           Very_Get_PageBoxForStamp, page, 0, "left", 0
top = oTest.veryGetFunctionEx(id,                      
           Very_Get_PageBoxForStamp, page, 0, "top",
pagewidth = oTest.veryGetFunctionEx(id,  
                      Very_Get_PageBoxForStamp, page, 0,   
                                                           "width", 0)
pageheight = oTest.veryGetFunctionEx(id,                             
                       Very_Get_PageBoxForStamp, page, 0,                             
                                                            "height", 0)
iRet = oTest.verySetFunctionEx(id, 131, page,
                                                                    1, 0, 0)
strStampBuf = "Page:" + Str(pagecount - page + 1) +                              
                             ", Page Box: [" + Str(left) + " " +                             
                               Str(top) + " " + Str(pagewidth) + " "                              
                                + Str(pageheight) + "]"
iRet = oTest.veryAddTextEx(id, 2, strStampBuf, 255,                       
                                       0, 0, 0, 0, 0, 0, 300, 0, 10, 1,                       
                                       "http://www.verypdf.com", 0)

                                                           Next page
code = oTest.veryAddTextEx(id, 7, "\d\n\t", 255, 0, 50, -30,               
              0, 0, 0, 0, NullString, 10, 0, NullString, 0
code = oTest.veryAddTextEx(id, 5, "Page \P3+1 of \c", 255,               
             0, -50, -30, 0, 0, 0, 0, NullString, 10, 0,               
           NullString, 0)
code = oTest.veryAddTextEx(id, 3, "2003 verypdf.com Inc.",               
             2666666, 0, -30, 30, 0, 0, 0, 300, NullString, 10, 0,               
             NullString, 0)
oTest.veryCloseEx (id
Response.write "1.pdf Success!"
Else
Response.write "Open file failer!"
End If

If you need to check more examples, please go to PDF Stamp SDK User Manual. During the using, if you have any question, please contact us as soon as possible. 

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Stamp and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!