Sherrod Computers - Web and Application development
Tiff Splitter DLL



TIFF Page Splitter DLL

General Info

Download Trial

Purchase

Customers include:
IBM
Ikon
Microsoft
Kodak
Xerox
Olympus
Minolta
NASA
More >>

Custom Application Development
Click here for information

Products



DLL / COM Products

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
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
PHP

$Obj = new COM("TiffPageSplitDLL.TiffPageSplitterDLL");
$file_to_split = "C:\test\test-1.tif";
$output_dir = "C:\outputdir";
$rslt = $Obj->Tiff_PageSplit($file_to_split, $output_dir);

echo $rslt;


Visual Basic

Add a refernce to the DLL in the Project

  1. In Visual Basic, click on the 'Project' menu, then click on 'References'
  2. Click the 'Browse' button and find the TiffPageSplitDLL.dll
  3. 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
%>