Image Stamp a signed Document
Unlike the general believe it is possible to add objects to already signed documents WITHOUT destroying the existing signatures. If you open such a document with the Adobe Reader it would offer to display the signed or the modified version of the document.
The API explained below require a valid license key. Please contact
aloaha@wrocklage.de for an evaluation key or fill in the form at the end of this page.
Signed and modified Document.pdf (465,07 KB)
add_inc_image
dim pdf
dim inputpdf
dim outputpdf
dim jpg24image
dim pagenumber
dim px
dim py
dim pw
dim ph
pagenumber = 1
jpg24image = "\\server\share\3510_1.jpg" 'must be 24 Bit JPG
inputpdf = "\\server\share\extracto2_signed.pdf"
outputpdf = "\\server\share\extracto2_signed_image.pdf"
'following values are percentages of the absolute page size!
px=80
py=80
pw=10
ph=10
set pdf = createobject("aloahapdf.edit")
if pdf.add_inc_image(cstr(jpg24image), cstr(inputpdf),cstr(outputpdf), clng(pagenumber), clng(px), clng(py), clng(pw), clng(ph))=true then
msgbox "OK"
else
msgbox "No valid license or error"
end if
set pdf = nothing
add_inc_note
dim pdf
dim inputpdf
dim outputpdf
dim opened 'true sets the note opened
dim pagenumber
dim px
dim py
dim pw
dim ph
dim ndate 'true includes date
dim nbody
dim nsubject
pagenumber = 1
opened = true
inputpdf = "\\server\share\extracto2_signed.pdf"
outputpdf = "\\server\share\extracto2_signed_image.pdf"
nsubject = "Subject of sticky note"
nbody = "Body of PDF Annotation"
ndate = true
'following values are absolute values in points!
px=120
py=400
pw=150
ph=80
set pdf = createobject("aloahapdf.edit")
if pdf.add_inc_note(cstr(inputpdf),cstr(outputpdf), clng(pagenumber), cbool(ndate), cstr(nbody), cstr(nsubject), cbool(opened), clng(px), clng(py), clng(pw), clng(ph)) = true then
msgbox "OK"
else
msgbox "No valid license or error"
end if
set pdf = nothing
Aloaha Software / Knowledge Base / PDF SDK / PDF Signature API / Modify signed PDF