48
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 108 of 553
InputByteStream must be called first.
OutputFileName
String
The full path to where you want the output file stored. If set
to a blank string ("") the file specified with FileName is
overwritten.
If set to "MEMORY" or if FileName = "MEMORY" and this
parameter is set = "", an output byte stream is generated.
Location
String
The location where the signature is applied. Typically, this is
city and state or company location.
Reason
String
The reason for signing the document.
ContactInfo
String
Contact information of the signer.
SignatureType
Long
0 = PKCS#1 Acrobat 4+ signature (best backwards
compatibility)
1=PKCS#7 Acrobat 4+ signature.
2=VeriSign Signature
®
. This requires the VeriSign plug-in.
Certificate authority must be VeriSign.
3=Microsoft Signature (Acrobat 6+).
Remarks
If the file is encrypted, you must call SetInputPasswords prior to calling InvisiblySignFile.
Example
Set TK = CreateObject("APToolkit.Object")
retCode = TK.FindCertificate("Joe Kant","My",1)
If (retCode < 0) Then
retCode = TK.CreateCertificate("Joe Kant", "Management", "activePDF","Mission
Viejo", "CA", "US", "joe@activepdf.com", 1, "My", 365,0,"","")
retCode = TK.FindCertificate("Joe Kant","My",1)
If (u < 0) Then
MsgBox("Can't find it!")
End If
End If
r = tk.InvisiblySignFile(retCode, "test.pdf", "test-output.pdf", "activePDF
Headquarters", "Our Document", "949-582-9002",0)
set TK = nothing