Overview

PDF Decrypt ActiveX DLL

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.

Buy Now Free Trial

Key Features

  • Support Windows 98, ME, NT, 2000, XP, 2003, Windows Vista and Windows 7.
  • 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

PDF Decrypt ActiveX DLL

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

» 1. Delphi Sample Code: Decrypt PDF with Delphi

procedure TForm1.Button1Click(Sender: TObject);
var
  obj: OleVariant;
  iRtn: Integer;
begin
  obj := CreateOleObject('PDFDecryptX.DecryptLib');  //Create object

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

  iRtn := obj.LoadFromFile('.\PDFDecryptX.pdf', ''); //Load PDF file
  {
    1: Loaded successful
    0: Can not load
   -1: File not exist
  }

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

    labPage.Caption := IntToStr(obj.PageCount); //Page count of PDF

    labSize.Caption := IntToStr(obj.FileSize);  //File size of PDF
  end;

  iRtn := obj.Decrypt('.\PDFDecryptX-Decrypted.pdf'); //Decrypt method
  case iRtn of
    0: labResult.Caption := '0->Decrypt failed';
    1: labResult.Caption := '1->Decrypt successful';
    2: labResult.Caption := '2->File not encrypted';
  end;

  obj.Close;  //Close file

  Obj := Unassigned;
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: Can not load
    'iRtn=-1: File not exist
     
    '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

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

private void button1_Click(object sender, EventArgs e)
{
			 
   PDFDecryptX.DecryptLibClass obj = new PDFDecryptX.DecryptLibClass();	//Create object

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

   int iRtn = obj.LoadFromFile(".\\PDFDecryptX.pdf", "");	//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)
   {
      if (obj.IsEncrypted == 1)	//Encrypted PDF ?
      {
         textBox1.Text = "YES";
      }
      else
      {
         textBox1.Text = "NO";
      }
      textBox2.Text = obj.PageCount.ToString();	//Page count of PDF
      textBox3.Text = obj.FileSize.ToString();	//File size of PDF
   }

   int iValue = obj.Decrypt(".\\PDFDecryptX-Decrypted.pdf"); //Decrypt method
   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;
   }

   obj.Close();	//Close file

   obj = Null;
}

» 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

<?php
  //Create object
  $obj = new COM('PDFDecryptX.DecryptLib') or die("Start PDFDecryptX.DecryptLibfailed");

  $obj->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.