Overview

PDF Decrypt ActiveX DLL

Latest Version : v3.20 [NEW]
Updated On    : Oct 07, 2011

Are you a developer? Do you want to add "PDF Password Remover", "PDF Decrypter", "Remove the owner password and restrictions of PDF files" feature to your application?

Now, you can try PDF Decrypt ActiveX DLL, with a few function calls, it helps you decrypt password of pdf in your Win programs or Web applications.

PDF Decrypt ActiveX DLL was intended to decrypt protected Adobe Acrobat PDF files, that comes with "owner" password set, preventing the file from editing (changing), printing, selecting text and graphics (and copying them into the Clipboard), or adding/changing annotations and form fields.

All editions of Adobe Acrobat (including 5.x, 6.x, 7.x, 8.x, 9.x which tools 48-bit,128-bit and AES encryption) are allowed by PDF Decrypt ActiveX DLL.

It is a standalone component and does not depend on Adobe Acrobat, or even Acrobat Reader.

Key Features

  • Support Windows NT4, Windows 2000(Server & Professional), Windows XP(Home & Professional), Windows 2003.
  • Support Windows VISTA, Windows 7 (32-bit), Windows 2008 R2 (32-bit).
  • Remove the security settings from your encrypted PDF file is instant.
  • Support PDF1.8 format (formerly only supported by Acrobat 9.0 application).
  • Support PDF1.8 (Acrobat 9.x) files, including 40-bit RC4 decryption, 128-bit RC4 decryption, AES decryption, compressed files and unencrypted metadata.
  • Support Adobe Standard 40-bit Encryption, Adobe Advanced 128-bit Encryption and AES Encryption.
  • Decrypt protected Adobe Acrobat PDF files, removing restrictions on printing, editing, copying.
  • Royalty free, Use PDF Decrpt ActiveX DLL in your applications without needing to pay any royalty fees for distribution.
  • No limits on number of applications.

Screenshot


Tips: PDF Decrypt ActiveX DLL is a developer SDK for Remove the owner password and restrictions of PDF files. If you are looking for a windows application to Remove PDF Owner Password and Remove Print, Copy, Edit Restrictions., please free trial PDF Decrypter Pro.

Sample code: Decrypt PDF with Delphi, VB, C#, ASP, PHP

» 1. Delphi Sample Code: Decrypt PDF with Delphi


implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
  obj: OleVariant;
  iRtn: Integer;
  sInFile, sOutFile: String;
begin
  OpenDialog1.InitialDir:= ExtractFilePath(Application.ExeName);
  if not OpenDialog1.Execute then
  begin
    Exit;
  end else
  begin
    sInFile:= OpenDialog1.FileName;
    sOutFile := ChangeFileExt(sInFile, '') + '_By_ActiveX_Decrypt.pdf';
  end;

  try
    obj := CreateOleObject('PDFDecryptX.DecryptLib');  //Create object
  except
    on E:Exception do
    begin
      ShowMessage('Please install AzSDK PDF Decrypt ActiveX DLL first.');
      Exit;
    end;
  end;

  obj.SetLicenseKey('License Code');  //Set your license key

  iRtn := obj.LoadFromFile(sInFile, ''); //Load PDF file
  {
    iRtn = 1: loaded successful
    iRtn = 0: Can not Load
    iRtn =-1: File not exist
  }

  //if load file successful, then get relational property.
  if iRtn = 1 then
  begin
    if obj.IsEncrypted = 1 then   //Encrypted PDF ?
      edtEncrypted.Text := '1->YES'
    else edtEncrypted.Text := '0->NO';

    edtPage.Text := IntToStr(obj.PageCount); //Page count of PDF

    edtSize.Text := IntToStr(obj.FileSize);  //File size of PDF
  end;

  iRtn := obj.Decrypt(sOutFile); //Decrypt method
  case iRtn of
    0: edtResult.Text := '0->Decrypt failed';
    1: edtResult.Text := '1->Decrypt successful';
    2: edtResult.Text := '2->File not encrypted';
  end;

  obj.Close;  //Close file

  Obj := Unassigned;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Close;
end;

end.

» 2. Visual Basic Sample Code: Decrypt PDF with Visual Basic

Private Sub Command1_Click()
    Dim obj As Object
    Dim iRtn As Integer
  
    Set obj = CreateObject("PDFDecryptX.DecryptLib")   'Create object
      
    obj.SetLicenseKey ("License Code")          'Set your license key
  
    iRtn = obj.LoadFromFile(".\PDFDecryptX.pdf", "")    'Load PDF file
    'iRtn = 1: loaded successful
    'iRtn=0:Load Failed;
     
    'if load file successful, then get relational property.
    If iRtn = 1 Then
        If obj.IsEncrypted = 1 Then     'Encrypted PDF ?
            Text1.Text = "YES"
        Else
            Text1.Text = "NO"
        End If
        
        Text2.Text = obj.PageCount      'Page count of PDF
        
        Text3.Text = obj.FileSize       'File size of PDF
    End If
    
    iRtn = obj.Decrypt(".\PDFDecryptX-Decrypted.pdf")   'Decrypt method
    If iRtn = 0 Then
        Text4.Text = "0->Decrypt failed"
    ElseIf iRtn = 1 Then
        Text4.Text = "1->Decrypt successful"
    ElseIf iRtn = 2 Then
        Text4.Text = "2->File not encrypted"
    End If
    
    obj.Close       'Close file
    
    Set obj = Nothing
End Sub

Private Sub Command2_Click()
  Unload Form1
End Sub

» 3. C# Sample Code: Decrypt PDF with C# (C-Sharp)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PDFDecryptX;

namespace Application1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            DecryptLibClass obj = new PDFDecryptX.DecryptLibClass();

            obj.SetLicenseKey("License Code");

            int iRtn = obj.LoadFromFile(".\\PDFDecryptX.pdf", "");

            if (iRtn == 1)
            {
                if (obj.IsEncrypted == 1)
                {
                    textBox1.Text = "YES";
                }
                else
                {
                    textBox1.Text = "NO";
                }
                textBox2.Text = obj.PageCount.ToString();
                textBox3.Text = obj.FileSize.ToString();
            }

            int iValue = obj.Decrypt(".\\PDFDecryptX-Decrypted.pdf");
            switch(iValue)
            {
                case 0: textBox4.Text = "0->Decrypt failed"; break;
                case 1: textBox4.Text = "1->Decrypt successful"; break;
                case 2: textBox4.Text = "2->File not encrypted"; break;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}

» 4. ASP Sample Code: Decrypt PDF with ASP

<%
  Set obj = server.createobject("PDFDecryptX.DecryptLib")	'Create object

  obj.SetLicenseKey("License Code")							'Set your license key

  If  1 = obj.LoadFromFile(".\PDFDecryptX.PDF", "") Then	'Load PDF file
    If 1 = obj.Decrypt(".\PDFDecryptX-Decrypted.pdf") Then	'Decrypt Method
      Response.Write("Decrypt successful.")
    End If
    obj.Close()	'Close file
  End If

  Set obj = Nothing	
%>

» 5. PHP Sample Code: Decrypt PDF with PHP

SetLicenseKey("License Code");  //Set your license key

  if ( 1 == $obj->LoadFromFile("c:/PDFDecryptX.pdf", "") )  //Load PDF file
  {
    if ( 1 == $obj->Decrypt("c:/PDFDecryptX-Decrypted.pdf") )  //Decrypt Method
	{
	  echo "Decrypt successful." ;
	}
    $obj->Close();  //Close file
  }

  $obj = null;
?>

Unregistered Copy Limitation

  • AzSDK PDF Decrypt ActiveX DLL is limited for 14 days without registration.
  • Only 3 Pages can be processed.