Adult PDF Encrypt software is a very flexible and powerful program, PDF Encrypt software allows you to encrypt (using standard 40-bit or 128-bit supported by Acrobat Reader 5.0 and up) existing PDFs, set permissions, add user and owner password. For example you can encrypt a PDF without to allow to print it. The button to print the file will be disabled in Acrobat Reader application, you also can encrypt a PDF allowing the user to read it only if he know the correct password.
Note, The source PDF must be an unencrypted PDF. Acrobat Reader will show a key in the bottom status bar if the PDF is encrypted.
There two passwords you can apply to a PDF. The first is the owner password. Opening a PDF with this password will allow you full access to the PDF when a user password has been assigned as well. This means that even if printing was disabled you will still be able to print the PDF when using this password. No password will be prompted for when opening the PDF if you secure it with only an owner password. The second is the user password. Opening a PDF with this password will restrict you based on how the PDF was password protected (printing may be disabled, for instance).
· Insert a watermark in the first page in the encrypted PDF file
Note:
[SDK] = SDK function name
[COM] = COM function name
long WINAPI AdultEncryptPDF(const char * inFileName, const char *outFileName, long EnctyptLen, long permission, const char *OwnerPassword, const char *UserPassword, const char *keywords, const char *subject, const char *title, const char *author, const char *creator )
Parameter:
inFileName
Input pdf filename
outFileName
Output pdf filename
The encryption level, maybe equal 40 or 128
Permission
Set permission to a pdf document; include printing, copying and changing,
0: no printing, no copying and no changing
1: allow printing
2: allow copying
4: allow changing
For example, if you want allow printing, copying and changing, the permission value should be 1+2+4 = 7
Owner password
User password
Keywords
Set keywords to the encrypted pdf document
Subject
Set subject to the encrypted pdf document
Set title to the encrypted pdf document
Author
Set author to the encrypted pdf document
Creator
Set creator to the encrypted pdf document
Return value
· -1: Open input PDF file failed
· -2: Can’t write to the output PDF file
· -3: Insufficient memory available
· -4: This PDF file has been encrypted, you can’t encrypt it again
· -7: AdultPDFEncrypt COM can’t support this type PDF file
· 1: Success
Remark
If the Keywords 、 Subject 、 Title 、 Author 、 Creator is NULL, the information in the “inFileName” will be used.
Additional:
for asp example description:
Steps:
1.Copy the AdultPDFEncrypt.dll and EncryptPDFOCX.dll files to your system32 directory,
for example,
copy AdultPDFEncrypt.dll c:\windows\system32
copy EncryptPDFOCX.dll c:\windows\system32
2.Register the EncryptPDFOCX.dll library in your system,
for example,
regsvr32 c:\windows\system32\EncryptPDFOCX.dll
3.Put the test.asp file into your IIS directory,
4.Please copy "test2.pdf" files to your "d:\test\" directory
5.Run the MS IE software, and open the "http://your localhost ip/test.asp" file,
6.The result
files are generated in the "d:\test\".
Contact
http://www.adultpdf.com/products/encryptpdf/index.htm
Copyright @ 2000-2003 AdultPDF.com Inc. All rights reserved.