Debenu Quick PDF logo


Document management, Security and Signatures


This function attempts to remove the encryption from a file on disk, saving the decrypted document to a new file.

This function will succeed even if the user password is supplied (including an valid blank password) rather than the master password. Developers are advised that they should respect the security wishes of the document's author.



function TDebenuPDFLibrary1511.DecryptFile(InputFileName, OutputFileName, 
  Password: WideString): Integer;


Function DebenuPDFLibrary1511.PDFLibrary::DecryptFile(InputFileName As String,
  OutputFileName As String, Password As String) As Long


int DPLDecryptFile(int InstanceID, wchar_t * InputFileName,
  wchar_t * OutputFileName, wchar_t * Password)


InputFileName The name of the file to decrypt.
OutputFileName The name of the destination file to create. If this file already exists it will be overwritten.
Password The password to use when decrypting the file.

Return values

0 The document could not be decrypted. Check the result of the LastErrorCode function to determine the cause of the failure.
1 The document was decrypted successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport