This is a fully functional DLL that can be incorporated in to virtually any Windows Program. We have provided some sample
source code to show how you could use this DLL in your program
Visual Basic
Add a refernce to the DLL in the Project
- In Visual Basic, click on the 'Project' menu, then click on 'References'
- Click the 'Browse' button and find the TiffPageSplitDLL.dll
- Double Click it so that it appears in your 'Available References' Page
Include this code in the beginning part of your program (or you could put this in your module)
Dim TSplit As New TiffPageSplitterDLL
To call the function and split pages of the TIFF file, you could use the following:
splitpageresult = TSplit.Tiff_PageSplit("C:\test\test.tif", "C:\outputdir")
Cold Fusion
<cfobject type="com"
action="create"
class="TiffPageSplitDLL.TiffPageSplitterDLL"
name="TSplit">
return status 1 means successful split
return status 0 means filename not found
return status -1 general error
return status -2 means not a tiff file
<cfset filename = "<FULL PATH AND FILENAME of a valid TIFF FILE>">
<cfset splitresult = TSplit.Tiff_PageSplit("C:\test\test.tif", "C:\outputdir")>
<cfoutput>
#filename# - #splitresult#
</cfoutput>
ASP
Copy and Paste the following source code in to a test.asp page on your web server:
return status 1 means successful split
return status 0 means filename not found
return status -1 general error
return status -2 means not a tiff file
<%
Set Obj = Server.CreateObject("TiffPageSplitDLL.TiffPageSplitterDLL")
dim filename
dim splitresult
filename = "<FULL PATH AND FILENAME of a valid TIFF FILE>"
splitresult = Obj.Tiff_PageSplit(cstr(filename), "C:\outputdir")>
Response.Write("<BR>" & filename & " :- <li>" & CStr(splitresult) & " </li>")
Set Obj = Nothing
%>