Eastman Software
Imaging
Professional Developer’s Guide
Eastman Software, Inc.
Tel. (978) 967-8000■http://www.kodak.com and www.eastmansoftware.com
Copyright © Kodak, 1998
715-B017
Disclaimer of Warranties and Limitation of Liabilities
Nothing contained herein modifies or alters in any way the standard terms and conditions of the purchase, lease, or license
agreement by which the product was acquired, nor increases in any way the liability of the supplier of the software, its affiliates or
suppliers (“the Supplier”). In no event shall the Supplier be liable for incidental or consequential damages in connection with or
arising from the use of the product, the accompanying manual, or any related materials.
Software Notice
All software must be licensed to customers in accordance with the terms and conditions of any approved and authorized license.
No title or ownership of the software is transferred, and any use of the software beyond the terms of the aforesaid license, without
written authorization of the publisher, is prohibited.
Restricted Rights Legend
Use, duplication, or disclosure by the Government of this manual/documentation is subject to the restrictions and protections
under paragraph (b)(2) or DoD FAR 252.227-7015, Technical Data-Commercial Items (Nov. 1995) or, as applicable,
FAR 52.227-19, Commercial Computer Software-Restricted Rights (June 1987). Use, duplication or disclosure by the
Government of this Software is subject to the restrictions and protections set forth in Eastman Software, Inc.’s standard commercial
license for such Software as prescribed in DoD FAR 227.7202-4 or, as applicable, FAR 52.227-19, Commercial Computer
Software-Restricted Rights (June 1987).
Important Notice Concerning the Use of LZW Compression
This product uses LZW, a compression/decompression technology that is covered by U.S. Patent 4,558,302 and its foreign
counterparts, issued or pending, held by the Unisys Corporation. Eastman Software’s grant of license from Unisys does not permit
you to use the LZW compression or decompression capabilities from any version of Imaging for Windows for development
purposes, or to use or derive the LZW capabilities from Eastman Software third party application or derivative software.
Please contact Unisys for licensing information at:
Unisys Corporation
Welch Licensing Dept. - MSC1SW19
Township Line and Union Meeting Roads
P.O Box 500
Blue Bell, PA 19424-0001
Fax: (215) 986-3090
or
www.unisys.com
Eastman Software is a trademark of Kodak.
Microsoft, Windows, and Windows NT are registered trademarks of Microsoft Corporation.
TextBridge
®©
1998 ScanSoft, Inc., a Xerox Company. All rights reserved.
Compatible with Visioneer-branded scanner products.
©
Visioneer, Inc. 1996.
Other product names mentioned in this guide may be trademarks or registered trademarks of their respective companies.
Contributers to this book include the following:
Project Leader
Jim Preftakes
Project Manager
Mark Sartanowicz
Lead Technical Writer
Bob Raymond
Contributing Technical Writers
Steve O’Neill, Leonard Turmel
Technical Editors
Charles Bann, Kathleen Sparr
Software Developers
Sue Cox, Guy Greese, Richard Guidoboni, Garry Sager,
and many other talented members of the Imaging for Windows team
Graphic Designers
Patricia Israel, Maria Witt
Production Specialists
Jeanne Chandonnet, Denise Govoni
Contents
Professional Developer’s Guide
1 Imaging In Development
Welcome to the Professional Developer’s Guide 2
Introducing Imaging for Windows 3
Imaging Components 4
Imaging Application 4
Imaging Preview 5
Imaging Flow 6
Development Tools and Methods 8
What Imaging Lets You Do 9
Command-line Invocation 9
OLE 10
Embedded Image Files 10
Linked Image Files 10
Automation 11
ActiveX Controls 12
Which to Use: Command-line Interface, OLE, Automation, or
ActiveX Controls? 13
Command-line Interface 13
OLE 14
Automation 14
ActiveX Controls 15
Sample Code 16
Automation Demonstration Project 16
ActiveX Demonstration Projects 16
ActiveX/Web Demonstration Project 17
ActiveX Sample Applications 17
What Imaging Lets Your Users Do 19
Contents
iv
What Exactly Is Document Imaging? 20
Business Document Imaging 20
Personal Document Imaging 21
Compiling and Distributing Your Image-Enabled
Application 22
You Included Imaging for Windows Professional Edition
Features 22
You Did Not Include Imaging for Windows Professional Edition
Features 22
Important Notice Concerning the Use of LZW
Compression 24
Documentation Conventions 25
2 Adding Imaging Using Automation
Overview 28
The Object Hierarchy 28
Application Object 29
ImageFile Object 29
Page Object 29
PageRange Object 30
Automation Server and Embedded Server Modes 30
Automation Server Mode 30
Embedded Server Mode 31
Examples 31
As an Automation Server Application 31
As an Embedded Server Application 34
Demonstration Project 36
View Modes 36
One Page 37
Thumbnail 38
Page and Thumbnails 39
Example 40
Contents
v
The Automation From Excel Project 40
Opening the Spreadsheet File 42
Opening and Displaying the Image File 42
Obtaining the Page Count 47
Rotating an Image Page 48
Setting the One Page View Mode 49
Setting the Thumbnail View Mode 49
Setting the Page and Thumbnails View Mode 50
Closing the Image File and the Imaging
Application 50
3 Automation Lexicon
Overview 52
Application Object 53
Application Object Properties 53
ActiveDocument Property 54
AnnotationPaletteVisible Property 54
Application Property 55
AppState Property 55
DisplayScaleAlgorithm Property 55
Edit Property 56
FullName Property 56
Height Property 56
ImagePalette Property 57
ImageView Property 57
ImagingToolBarVisible Property 58
Left Property 58
Name Property 58
Parent Property 59
Path Property 59
ScannerIsAvailable Property 59
ScanToolBarVisible Property 59
ScrollBarsVisible Property 60
StatusBarVisible Property 60
ToolBarVisible Property 60
Top Property 61
TopWindow Property 61
Visible Property 61
- 1
- 2
- 3
- 4
前往页