IMG2PDF.dll =========== >>> This is the shareware version... >>> Try before you buy... >>> And if there're any questions - ask me. >>> Thanks for trying! You can use it with all well known ides (.NET-IDEs, too!) Try it with Visual Basic, VBA, CSharp, VB2005 Express, Delphi, C, C++, ... 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. Please keep in mind: If you're working inside the IDE from VB 6.0 the file IMG2PDF.dll should be in the VB98-directory 'cause then the application is VB 6.0 and not the project you're testing. If you're working inside the IDE from VB 2005 Express the file WMF2PDF.dll should be in the bin-directory (under your project-directory). 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 int32 /vb2005). If you want to use it in an asp environment... Using for example Windows 2003 you should have a look at the "Data Execution Prevention (DEP)". The "DEP" should be disabled for the process using the IMG2PDF.dll! How to do it: The "DEP" should be disabled for the w3wp.exe process (located in c:\windows\system32\inetsrv). Go to the "system properties" -> "performance options" -> The tab "Data Execution Prevention" -> "Turn on DEP for ... except those i select" -> Here you have to mark the "IIS Worker Process". At the end you have to perform an IISreset at the command prompt. That's all ... in this way the IMG2PDF.dll can work in an asp environment (for example with Windows 2003). If you want to use it in a 64 bit environment... IMG2PDF.dll is a 32 bit dll but you can use it in 64 bit environments, too. For example on Win XP Pro x64 the calling application should be installed in the "program Files (x86)" directory and it'll work. If you want to insert the dll in the system32-directory: This directory is used only for 64 bit dlls if it's a 64 bit system. In this case the IMG2PDF.dll (= 32 bit) should be in the SysWOW64-directory. The library itself ------------------ IMG2PDF.dll (in the windows\system32- or in your application-directory) The library works with the image types BMP, JPEG, PNG, GIF, WMF, EMF and TIF. If you want to use your graphical clipboard-content then you should insert as first parameter a "cb" (for clipboard). Images (or clipboard-content) will be converted to pdf. If the pdf (second parameter) exists then the new created pdf will be appended to the existing one - if the pdf doesn't exist a new pdf will be created. For the library there is a help-program to test the function immediately: ------------------------------------------------------------------------- H_IMG2PDF.exe There are sample sources included: ---------------------------------- Pascal/Delphi H_IMG2PDF.pas Visual Basic 2008 H_IMG2PDF.vb C# 2008 H_IMG2PDF.cs The function and the calling conventions: ----------------------------------------- function IMG2PDF(const ImageName: PChar; PDFName: PChar): LongInt; stdcall; // ImageName Filename of the image (with path) // PDFName Name of the PDF-file (with path) generated / appended by the image. The error-codes: ---------------- 9000 // A not further specified error. The function starts with it first. 9001 // The parameter for the image-file is missing. 9002 // The parameter for the pdf-file (destination with path) is missing. 9003 // The image-file doesn't exist. 9004 // You want to use the clipboard but it's empty. 9005 // Destination should be a pdf-file (with path). 9006 // Error while saving/writing the pdf-file. 9007 // Error while loading the existing pdf-file. 9008 // Error while image-to-pdf-conversion. 9009 // Imagetype isn't supported 0 // Conversion with creating or appending was okay. contact: webmaster@pdf-analyzer.com info/help: http://www.pdf-analyzer.com http://www.is-soft.de Ingo Schmoekel - Software-Dev.& Distribution - Zedernstr.30a D-28832 Achim - Uesen GERMANY