PDF Security ActiveX Component

Features |  FAQ | History | Manual | Support | Buy! | Clients

PDF Security ActiveX Component can encrypt PDF with standard 40-bit or 128-bit encryption. You can also set the permission of the user such as printing, modifying etc. You can make secure PDF and protect your PDF in one function call.

PDF Security ActiveX also provides the ability to decrypt an encrypted PDF given the password.

Add "encrypt pdf " or "decrypt pdf " feature to your application now!

Both encryption and decryption are done by PDF Security ActiveX Component itself without the need of installing additional software such Acrobat PDF Reader.You can make secure PDF documents easily to achieve password enabled content protection.

Free Download & Try Now Play with the working demos before purchase without any risk!
Buy Now
. Get the registration code instantly. $149.95 For Single Developer License.

PDF Security can be easily integrated into applications written in languages that support ActiveX Component such as Visual C++, Visual Basic, Delphi, C++ Builder, .Net languages,  Java, Scripts like Perl, Php, Python.

PDF Security is .Net ready, you can integrate it into your web application to provide secure PDF solutions for your users. Registered version can be deployed or redistributed FREE, NO addtional runtime fee needed NOW!.

News:Want PDF split and merge function? PDF Split Merge Try freely!
Or get PDFToolkit Pro (All in one PDF ActiveX, split, merge pdf, encrypt, decrypt pdf, convert tiff to pdf, pdf stamper)


"The Best Program Of Its Kind On The Market!"

Nice features - we can script on the fly to secure our PDF files

Unsure? Unconvinced? I understand. We'll also throw in FREE tech support

But if you're still not sure, try it out for FREE !

We are committed to improving PDF Security Component constantly. See History

Want all PDF releated products? Look at PDF Split and Merge, TIFF To PDF, PDF Security , PDF Stamper

Highlight Features:

  • Encrypt PDF, decrypt PDF
  • Supports PDF user password and owner password protection
  • Password protect opening of the PDF document
  • Disable printing of the PDF document
  • Disable copying of text/graphics
  • Disable modifications to PDF the document
  • Password protection for PDF files with 40 or 128 bit encryption
  • Detect if PDF file is encrypted or not
  • Rich examples in VB, ASP, VB Script, C#, VB.Net and ASP.Net are provided.




encrypt pdf, decrypt pdf, pdf encryption, pdf decryption, encrypted pdf, secure pdf, add password to pdf

System Requirements:

Windows Platform


LONG EncryptPdf(String inputFile, ENCRYPTTYPE eEncryptType, LONG ePermission, String strOwnerPasswd, String strUserPasswd, String strOutFile);

Description: encrypt PDF

inputFile: the source unencrypted PDF file

eEncryptType: enumerator type, can be EC_40 or EC_128 for 4o-bit or 128 bit encryption

EC_40 = 0
EC_128 = 1

ePermission: bitwise type to set the permission on the PDF file. The possible value can be:

PS_ALLOWDEGRADEDPRINTING = 4, //to allow degraded printing
PS_ALLOWMODIFYCONTENTS = 8, //to allow modifying contents
PS_ALLOWCOPY = 16, //to allow copying
PS_ALLOWMODIFYANNOTATIONS = 32, ///to allow modification annoations
PS_ALLOWFILLIN = 256, //to allow fill in forms
PS_ALLOWSCREENREADERS = 512, //to allow screen reader
PS_ALLOWASSEMBLY = 1024, //to allow assmember
PS_ALLOWPRINTING = 4 + 2048 //to allow printing

The value can be bitwise OR together or added to set multiple permission.

strOwnerPasswd: owner password

strUserPasswd: user password

strOutFile: outout secure PDF

return value: a long value returned by the function


LONG DecryptPdf(String inputFile, String strPasswd, String strOutFile);

Description: try to decrypt PDF with the password

Description: encrypt PDF

inputFile: the source unencrypted PDF file

strPasswd: the owner or user password

return value: a long value returned by the function


LONG IsEncrypted(String inputFile);

Description: try to decrypt PDF with the password

Description: tell if a PDF is encrypted or not

inputFile: the source unencrypted PDF file

return 1 for encrypted pdf, 0 for unencrypted pdf file, else return nagative error.


The files that need to redistribute PDF Security Component with applications are:

PDFSecurity.dll: the component itself. It needs to be registered as ActiveX by regsrv32 or setup program.

PDFKit.dll: the underline PDF library

Once registered, you can redistribute PDF Security Component royalty-freely. (For details about redistribution, please refer to the license agreement)


If you have any questions or suggestions regards to PDF Security Component. Please feel free to email us:

Guangming Software

admin@guangmingsoft.net , support@guangmingsoft.com


1. What languages does it support?
Answer: A lot. The component is based on ActiveX, which can be used with VB Script, Java script, Perl, Php, Python, ASP, ASP.Net, VB.Net, C#, VB6, Cold Fusion, Delphi, VC++, Java etc. We have provided examples for all of the above languages.

2. How do I register the component?
Answer: Once you buy the component, a registration code will be sent to you by email. After creating an object instance of PDF Security in your favorite programming languages, calling the SetCode method with the code you got by email. In this way, every limitation in trial mode will be removed.

'Here is a quick example in VB Script:

Dim pdf
Set pdf = CreateObject("PdfSecurity.PdfCrypt.1")

'Set your code here
pdf.SetCode "Your license code here"

'Then do what ever you like ...

3. Can you do custom development for special usage?
Answer: Sure. Please tell us what you need and we can discuss a cost, and then develop custom version on schedule just for you.


02/20/2010 Fix a couple of bugs
01/18/2008 2008 new release
03/07/2007 Add demos and bug fixes

5/06/2006 Update PDFKit.dll
3 /18/2006 Add new methods to tell if a pdf file is encrypted
6/23/2005 Add C#, VB.Net, ASP.Net examples
6/04/2005 Initial Release, encrypt pdf, decrypt pdf