PDFLock.dll 32 bit
==================

You can use it with all well known ides (.NET-IDEs, too!)
Try it with Visual Basic, VB Express, CSharp, VBA, Delphi, C, C++, ...

>>> 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.
If you're using vba (from ms access or excel for example) the dll should be:
in the system32-path (32-bit-dll on 32-bit-system),
in the syswow64-path (32-bit-dll on 64-bit-system) or
in the system32-path (64-bit-dll on 64-bit-system).
Using other IDEs like Delphi or C++ for example you can put the dll into the application-path, too.

For the library there is a help-program to test the function immediately:
-------------------------------------------------------------------------
H_PDFLock.exe

As source samples there are DelphiXE, VB6.0-, VB20xx- and C#-project included:
------------------------------------------------------------------------------
sample_code_32_bit_PDFlock.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 = error while loading the file
9005 = there's a user password - no lock possible
9006 = error while save back the locked file
9007 = pdf-structure or dictionary is wrong
9008 = error while save back the locked file
9009 = parameter value(s) is/are missing/wrong
0    = general error
1    = success!	


Function with parameter type, values and their meanings:
--------------------------------------------------------

PDFLock.dll with function ...
SetPDFlocked(FileName, NewFileName, 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
NewFileName:    PChar; 		the future locked pdf-file with the complete path (can be the same as FileName)
mp: 		PChar; 		the main password or nothing   
up: 		PChar; 		the user password or nothing
enc: 		PChar; 		the used encryption standard 		(40, 128, 1AES, 2AES9, 2AESX)
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)

The meaning of enc-content:

40	40-bit-rc4-encryption 
128 	128-bit-rc4-encryption
1AES 	128-bit-aes-encryption
2AES9 	256-bit-aes-encryption Adobe 9.x and more
2AESX	256-bit-aes-encryption Adobe X and more


Working with a dll in your project-environment:
-----------------------------------------------

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 VB.NET-project using PDFLock.dll the dll should be below the project-folder in \...\bin\Debug\ or \...\bin\Release\.
While working on a C#-project using PDFLock.dll the dll should be below the project-folder in \...\bin\Debug\ or \...\bin\Release\.
The right path for a dll working with Visual Studio is in a windows-32-bit-system the ...\system32-path for 32-bit-dlls or the VS-paths ...\x86\Debug\... or ...\x86\Release\...
The right path for a dll working with Visual Studio is in a windows-64-bit-system the ...\system32-path for 64-bit-dlls or the VS-paths ...\Any\Debug\... or ...\Any\Release\...
The right path for a dll working with Visual Studio is in a windows-64-bit-system the ...\syswow64-path for 32-bit-dlls or the VS-paths ...\x86\Debug\... or ...\x86\Release\...

While working on a Delphi
-project using PDFLock.dll the dll should be in the relevant project-folder where all main project-files are.


 