PDF Encrypt ActiveX DLL
Add user and owner passwords plus permission controls to PDF files.
PDF library SDK
One component for the full PDF security lifecycle: require a password to open, restrict printing, copying and editing, then decrypt when the owner password is known.
PDF Security ActiveX DLL is a COM component for Windows developers who need to protect PDF documents inside their own applications. It applies user and owner passwords, sets document permissions, detects existing protection, and removes that protection when the owner password is available.
It is a standalone DLL. It does not install, call or depend on Adobe Acrobat or Acrobat Reader, so it can run on servers and locked-down desktops where Acrobat is not available.
Typical uses include document portals, invoice and statement delivery, contract workflows, evaluation copies, and any product that must hand out PDFs with controlled access.
Features
Use cases
Password-protect statements, invoices and reports before they are emailed or downloaded.
Disable printing, copying or editing for preview and evaluation copies while keeping the original intact.
Open a protected file with its password, then re-save it with different permissions or remove protection.
Run inside ASP, ASP.NET or scheduled services on machines where Acrobat is not installed.
Sample code
using PDFSecurityX;
var pdf = new PDFSecurityX.SecurityLibClass();
pdf.SetLicenseKey("YOUR-LICENSE-KEY");
// 1 = loaded, 0 = cannot load, -1 = file not found
int loaded = pdf.LoadFromFile(@"C:\docs\contract.pdf", "");
if (loaded == 1)
{
// Vendor sample mask: printing, copying and editing disabled.
int permissions = pdf.CreatePermissions(0, 0, 0, 1, 1, 1, 1, 1);
int result = pdf.Encrypt(
@"C:\docs\contract-protected.pdf",
2,
permissions,
"owner-password",
"user-password");
}
pdf.Close();The same methods are available from VB, Delphi, C++, PHP, Python and any COM-capable environment.
More examples are available on request. Your project can use late binding, an imported type library, or P/Invoke where applicable.
SetLicenseKey() with the key you receive after purchase. Trial builds run with the limitation described above.Interface reference
The installer includes a complete interface reference and demo projects.
| Method | Purpose |
|---|---|
SetLicenseKey(key) | Unlock the component with your license key. |
LoadFromFile(path, password) | Open a PDF. Returns 1 on success, 0 on failure, -1 if the file is missing. |
IsEncrypted | Read-only flag that reports whether the loaded PDF is protected. |
PageCount / FileSize | Read document properties after loading. |
CreatePermissions(...) | Build the permission mask used by Encrypt(). |
Encrypt(output, keyLength, permissions, ownerPwd, userPwd) | Encrypt and save. Returns 0 failed, 1 success, 2 already encrypted. |
Decrypt(output) | Remove protection and save. Returns 0 failed, 1 success, 2 not encrypted. |
Close() | Release the open document. |
Pricing
Royalty-free distribution. Prices in USD; taxes and VAT are handled by our Merchant of Record at checkout.
$119.95 $199.95
1 developer, or 1 server deployment
$239.95 $399.95
Your development team, up to 5 server deployments
$455.95 $759.95
Unlimited developers, servers and applications
Need a custom build or an upgrade? Contact us. See the refund policy.
Free trial
Install the trial, run the sample code, and evaluate the output on your own documents. The installer includes the component, demo application and documentation.
The full version and registration key are delivered by email after purchase.
FAQ
Tutorials
Related products
Add user and owner passwords plus permission controls to PDF files.
Remove owner-password restrictions and unlock PDFs your app is allowed to process.
Split, merge and rotate PDF files by page range from Windows applications.
The trial is free and does not require registration. See the output before you buy.