PDFLock.dll =========== You can use it with all well known ides (.NET-IDEs, too!) Try it with Visual Basic, VBA, Delphi, C, C++, CSharp, ... >>> This is the T-E-S-T version... >>> Try before you buy... >>> And if there're any questions - please ask me. >>> Thanks for trying! About installation and working with the dll... ---------------------------------------------- This dll doesn't have an entry point so it's not necessary to register it. Only copying into the system32-directory or in the directory where your application is installed. If you're using vba (from ms access or excel for example) you should declare the functions as private and not public. Using .NET-environments (like MS Visual Studio) it's often better (to avoid stack imbalance errors) to change the parameter-types from longinteger to integer or (better) Int32. PDFLock won't work if a user-password is already set or if the pdf is an ebook... On all other pdf-documents PDFLock should be the first choice for protection! For the library there is a help-program to test the function immediately: ------------------------------------------------------------------------- H_PDFLock.exe As source samples there is a Delphi5-, VB2008- and C#2008-project included: --------------------------------------------------------------------------- H_PDFLock_Delphi5_sources.zip H_PDFLock_VB6_sources.zip H_PDFLock_CSharp2008Express_sources.zip H_PDFLock_VB2008Express_sources.zip contact: webmaster@pdf-analyzer.com ORDER AT: http://www.pdf-analyzer.com http://www.is-soft.de Ingo Schmoekel - Software-Dev.& Distribution - Zedernstr.30a D-28832 Achim - Uesen GERMANY error codes: ------------ 9001 = file not found 9002 = no pdf-file 9003 = encryption type is missing (no encryption means no lock) 9004 = parameter value(s) is/are missing/wrong 9005 = there's a user password - no lock possible 9006 = error while save back the locked file 9007 = pdf-structure or dictionary is wrong 0 = general error 1 = success! Function with parameter type, values and their meanings: ------------------------------------------------------- PDFLock.dll with function ... SetPDFlocked(FileName, mp, up, enc, print, copy, change, fill, comm, cont, doca, prlow) --> the returning value is LongInt. const FileName: PChar; the pdf-file with the complete path mp: PChar; the main password or nothing up: PChar; the user password or nothing enc: PChar; the used encryption standard (40, 128 or AES) print: LongInt; printing allowed (1=yes 0=no) copy: LongInt; copy allowed (1=yes 0=no) change: LongInt; changing allowed (1=yes 0=no) fill: LongInt; filling formfields allowed (1=yes 0=no) comm: LongInt; adding comments allowed (1=yes 0=no) cont: LongInt; content access allowed (1=yes 0=no) doca: LongInt; document assembling allowed (1=yes 0=no) prlow: LongInt; printing with high resolution allowed (1=yes 0=no) While working on a VB6.0-project on a 32-bit-windows-system using PDFLock.dll the dll should be in the folder \...\system32\. While working on a VB6.0-project on a 64-bit-windows-system using PDFLock.dll the dll should be in the folder \...\SysWow64\. While working on a VB2008-project using PDFLock.dll the dll should be below the project-folder in \...\bin\Debug\. While working on a C#2008-project using PDFLock.dll the dll should be below the project-folder in \...\bin\Debug\. While working on a Delphi -project using PDFLock.dll the dll should be in the relevant project-folder where all main project-files are.