Aloaha PDF Crypter API
The Aloaha PDF Crypter API can be used to access the Aloaha PDF Crypter from your ASP or PHP Website or to integrate certificate based PDF encryption in your application.
To enable the Aloaha PDF Crypter API the Enterprise Edition is required! Please contact
aloaha@wrocklage.de for a free evaluation key.
Please find below a sample VBS code to demonstrate how easy the API is to use. More samples can be found
HERE.
Dim crypter
Dim pdfstring
'create crypter object
Set crypter=CreateObject("aloahapdf.edit")
'add public keys of recipients. More than one public key is allowed!
Call crypter.add_recipient("c:\enc\public.cer")
Call crypter.add_recipient("c:\enc\ceo.cer")
'read PDF document to be encrypted from File
pdfstring=crypter.ReadStringFromFile("c:\enc\original.pdf")
'call certificate based PDF encryption
pdfstring=crypter.encrypt_pdf_string(CStr(pdfstring))
If pdfstring<>"" Then
'write encrypted PDF to disk
pdfstring=crypter.WriteStringToFile("c:\enc\ebook.pdf",CStr(pdfstring),false)
End If
Set crypter=nothing
Aloaha Software / Products / Aloaha PDF Crypter / Feature List / PDFCrypter API