¡¡
PDF Encrypt software is a very flexible and powerful program, PDF Encrypt software allows you to encrypt (using RC4 40-bit or RC4 128-bit or AES 128-bit encryption ) 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).
Only the first half pages of your original PDF file can be encrypted.
Note:
[SDK] = SDK function name
[COM] = COM function name
long EncryptPDF(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 )
inFileName
indicated the input pdf filename
outFileName
indicated the output pdf filename
EnctyptLen
The encryption level, maybe equal 1,2,3
RC4 40-bit = 1
RC4 128-bit = 2
AES 128-bit = 3
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
OwnerPassword
Owner password
UserPassword
User password
Keywords
Set keywords to the encrypted pdf document
Subject
Set subject to the encrypted pdf document
Title
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: apPDFEncrypt 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.
long IsEncryptPDF(const char * inFileName)
Parameter:
inFileName
indicated the input pdf filename
Return value
0: is not a pdf file.
1: is a pdf file.
long IsPDFFormat(const char
* inFileName)
verify if it is the pdf file.
Parameter:
inFileName
indicated the input pdf filename
Return value
0: is not a pdf file.
1: is a pdf file.
Contact
http://www.adultpdf.com/products/encryptpdf/index.html
Copyright @ 2008 Adultpdf.com Inc. All rights reserved.