Sherrod Computers - Web and Application development
Tiff Reverse DLL



Tiff Reverse DLL

General Info

Sample Source Code

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

Please download the PDF manual for a more detailed description of this DLL and how to use it.
[click here to download the manual].

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 reference 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 SCTiffReverse.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 TReverseObj As New SCTiffReverse.TReverse

Now, create a sub or function to get the page count, (the following is a sample you could use):

ReversePages = TReverseObj.TiffReverse(OriginalFile,OutputDir,OutputFileName)

'OriginalFile' is the variable that contains the FULL path to the PDF file.
'OutputDir' contains the full path to the output directory
'OutputFileName' contains the name of the new file you want to create with the reversed pages.


Cold Fusion

<cfobject type="com"
action="create"
class="SCTiffReverse"
name="TReverseObj">

return status 1 means success
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 rslt = TReverseObj.TiffReverse(filename)>

<cfoutput>
#filename# - #rslt#
</cfoutput>


ASP

Copy and Paste the following source code in to a test.asp page on your web server:

return status 1 means success
return status 0 means filename not found
return status -1 general error
return status -2 means not a PDF file

<%
Set Obj = Server.CreateObject("SCTiffReverse.TReverse")
dim filename
dim rslt

filename = "<FULL PATH AND FILENAME of a valid Tiff FILE>"

rslt = Obj.TReverse(cstr(filename), cstr(outputdir), cstr(outputfilename))
Response.Write("<BR>" & filename & " :- <li> status" & CStr(rslt) & "</li>")

Set Obj = Nothing
%>