www.PDF-Analyzer.com
Ingo Schmoekel - Software-Dev.& Distribution

* Start

* Products
* Ordering
* Download
* Links
* Contact
* References

 

PDFtext - A dll for your pdf-files... Royalty free!

How to use the dll...

In the test-package (zip) there are already sample projects for Delphi 5, Visual Basic 6.0 and Visual Basic 2005 Express included. For all the C++ developers here's a sample project working with another dll of mine but the main handling is the same for all of my dlls:

C++ Project

Not really a mainstream devtool but it works with PDFtext.dll, too: Here's a sample project made with PowerBuilder 8.0. The project includes workspace, target, library, a readme-file and a screenshot of the sample project:

PowerBuilder 8.0 Project


About installation and working with the dll...
  
1.
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.

2. If you're using vba (from ms access or excel for example) you should declare the functions as private and not public.

3. 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).
This is a p-invoked .dll ... If you've any problems with your ide please read here:
.NET Framework Developer's Guide
"Consuming Unmanaged DLL Functions"
http://msdn2.microsoft.com/en-us/library/26thfadc.aspx

4. If it happens to you that the PDFtext.dll is still running after closing the MS Access 2003 Application you can add the following kernel32-function. Please see and use the following code:

Private Declare Function GetPDFText Lib "C:\WINDOWS\system32\PDFtext.dll" (ByVal FileName As String, ByVal opt As Integer, ByVal fast As Integer, ByVal target As String, ByVal xlspaces As Integer, ByVal ptitel As String, ByVal pos As Integer, ByVal page As Integer, ByVal clock As Integer, ByVal blank As Integer, ByVal ende As Integer) As String

Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long

Private Sub cmdEnd_Click()
End
End Sub

Private Sub Form_Load()
Call LoadLibrary("PDFtext.dll")
' doing anything here ...
End Sub

5. If you get exception messages using PDFtext.dll on a Windows 2003 Server you should disable the data execution prevention (DEP) totally or for the process using the PDFtext.dll.