adultpdf.com Inc

PDF Encrypt COM/DLL V3.0
(support Server/Client)
User Manual

¡¡

 

Introduction

 

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).

 

Features





Limitations in the trial version

 

Only the first half pages of your original PDF file can be encrypted.

 

Functions

Note: 
[SDK] = SDK function name
[COM] = COM function name


[SDK]
EncryptPDF
[COM]
EncryptPDF

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 )

Description

  Encrypt a existing PDFs, using RC4 40-bit or RC4 128-bit or AES 128-bit encryption,set permissions, add user and owner password.

Parameter

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.

                       

 

[SDK] IsEncryptPDF
[COM]
IsEncryptPDF

long IsEncryptPDF(const char * inFileName)

Description

  verify if it is the encrypt pdf file.

Parameter:

inFileName

indicated the input pdf filename

 

Return value

0: is not a pdf file.

1: is a pdf file.



[SDK] IsPDFFormat
[COM]
IsPDFFormat

long IsPDFFormat(const char * inFileName)

Description

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

Homepage

http://www.adultpdf.com

http://www.adultpdf.com/products/encryptpdf/index.html

E-mail

mailto:support@adultpdf.com

 

Copyright @ 2008 Adultpdf.com Inc. All rights reserved.