43
Delete Cache Files ..................................................................................................................... 25
WinForm Document Viewer ......................................................................................... 26
WinViewer Overview..................................................................................................................... 26
Feature List ................................................................................................................................ 26
Control APIs .............................................................................................................................. 26
Add a WinViewer to Your Project .................................................................................................. 27
Setting Up Your Project ............................................................................................................. 27
Open File from Specified Path .................................................................................................... 28
Draw Specified Annotation on Page ........................................................................................... 30
Customize WinViewer Control ....................................................................................................... 31
Customize Toolbar ..................................................................................................................... 31
Customize Annotation Style ....................................................................................................... 31
Customize the Way Open and Store Files ................................................................................... 33
Customize the Drop-down List ................................................................................................... 34
Programming with RasterEdge Document Imaging SDK ............................................ 35
Overview .............................................................................................................................. 35
Register Process ................................................................................................................... 37
TIFF ..................................................................................................................................... 38
TIFF File Overview........................................................................................................................ 38
Requirements ................................................................................................................................. 38
TIFF Programming Classes ............................................................................................................ 38
Construct, Load and Save a TIFFDocument ................................................................................... 39
Load or Create a TIFFDocument ................................................................................................ 39
Save a TIFF File ........................................................................................................................ 40
Clear Temp files generated in the process ....................................................................................... 40
Get preview of Tiff Document ....................................................................................................... 40
TIFF Rendering and Conversion ..................................................................................................... 41
Convert TIFF Document to Image Files ...................................................................................... 41
Convert TIFFPage to Image File ................................................................................................ 41
Convert TIFFPage to Bitmap ...................................................................................................... 42
Convert TIFFDocument to PDF ................................................................................................. 42
TIFF Annotation ............................................................................................................................ 43
Editing TIFF Metadata................................................................................................................... 44
Add, Delete, Update and Find a TIFF Field ................................................................................ 44
Add ,Delete ,Update and Find a EXIF Field ................................................................................ 45
Add ,Delete ,Update and Find a IPTC Field ................................................................................ 46
Get the XML Information .......................................................................................................... 46
Editing TIFF Document ................................................................................................................. 47
Re-Order Pages of TIFF File ...................................................................................................... 47
Swap two pages of TIFF File ..................................................................................................... 47
Insert Pages to TIFF File ............................................................................................................ 47
Delete Pages from TIFF File ...................................................................................................... 47
Split TIFF File ........................................................................................................................... 48
45
Combine TIFF File .................................................................................................................... 48
Generate Barcode on TIFF ............................................................................................................. 48
Read Barcode Information from TIFF ............................................................................................. 49
How to ........................................................................................................................................... 49
How to View Thumbnail Image of a TIFF Document ................................................................. 50
How to Generate Magnified Images of TIFFDocument ............................................................... 50
How to Add Watermark onto TIFF Document ............................................................................ 51
PDF ...................................................................................................................................... 53
Introduction to PDF Functions ........................................................................................................ 53
About PDF Programming Classes ................................................................................................... 53
PDFDocument Object .................................................................................................................... 53
Get preview of PDF Document ....................................................................................................... 54
Save PDFDocument to File or Stream............................................................................................. 54
PDF Rendering and Conversion ..................................................................................................... 55
Convert PDFDocument to Images ............................................................................................. 55
Convert a PDFPage to Image File ............................................................................................... 55
Convert PDFPage to Bitmap ...................................................................................................... 56
Convert PDF to SVG ................................................................................................................. 57
Convert PDF Document to TIFF ................................................................................................ 58
Convert Other Document Types to PDF File............................................................................... 58
PDF Annotations ............................................................................................................................ 59
Create Barcode in PDF ................................................................................................................... 59
Read Barcode from PDF................................................................................................................. 60
How to’s ........................................................................................................................................ 61
How to: Create an Image-only PDF Document ........................................................................... 61
How to: Create Thumbnail of PDF Document ............................................................................ 61
How to: Add WaterMark to PDFPage......................................................................................... 62
Introduction to Word Functions ...................................................................................................... 63
.docx and .doc file formats ............................................................................................................. 63
Load and Save Word Document ..................................................................................................... 63
About Word Programming Classes ............................................................................................. 63
Word Document Object.............................................................................................................. 64
Load Word document ................................................................................................................. 64
Save Word Document ................................................................................................................ 65
Get preview of word Document ..................................................................................................... 65
Annotations on Word Document..................................................................................................... 65
Word Rendering and Conversions................................................................................................. 66
Convert DOCXDocument to Images .......................................................................................... 66
Convert DOCXPage to Image File.............................................................................................. 66
Convert DOCXPage to Bitmap ................................................................................................... 67
Convert DOCXDocument to PDF or TIFF File ........................................................................... 68
Convert Word to SVG ................................................................................................................ 68
Create Barcode in Word ................................................................................................................. 69
Read Barcode from Word ............................................................................................................... 70
How to’s ........................................................................................................................................ 71
44
How to: Create Thumbnail of DOCXDocument .......................................................................... 71
Excel..................................................................................................................................... 72
Introduction to Excel Functions ...................................................................................................... 72
.xlsx and .xls file formats ................................................................................................................ 72
About Excel Programming Classes ................................................................................................. 72
Excel Document Object .................................................................................................................. 73
Load Excel Document .................................................................................................................... 73
Save Excel Document .................................................................................................................... 73
Get preview of Excel Document .................................................................................................... 74
Annotations on Excel Document..................................................................................................... 74
Excel Rendering and Conversions .................................................................................................. 75
Convert XLSXDocument to Images ........................................................................................... 75
Convert XLSXPage to Image File .............................................................................................. 75
Convert XLSXPage to Bitmap.................................................................................................... 76
Convert XLSXDocument to PDF or TIFF File ............................................................................ 77
Convert Excel To SVG .............................................................................................................. 77
Create Barcode in Excel ................................................................................................................. 78
Read Barcode from Excel ............................................................................................................... 79
How to’s ........................................................................................................................................ 80
How to: Create Thumbnail of Excel............................................................................................ 80
PowerPoint .......................................................................................................................... 81
Introduction to PoinerPoint Functions ............................................................................................. 81
.pptx and .ppt file formats ............................................................................................................... 81
About PowerPoint Programming Classes ........................................................................................ 81
PowerPoint Document Object ......................................................................................................... 82
Load PowerPoint Document ........................................................................................................... 82
Save PowerPoint Document ........................................................................................................... 82
Get preview of Powerpoint Document ........................................................................................... 83
Annotations on PowerPoint Document ........................................................................................... 83
PowerPoint Rendering and Conversions ........................................................................................ 84
Convert PPTXDocument to Images ............................................................................................ 84
Convert PPTXPage to Image File ............................................................................................... 84
Convert PPTXPage to Bitmap .................................................................................................... 85
Convert PPTXDocument to PDF or TIFF File ............................................................................ 85
Convert PPTX To SVG .............................................................................................................. 86
Create Barcode in PowerPoint ........................................................................................................ 87
Read Barcode from PowerPoint ...................................................................................................... 88
How to’s ........................................................................................................................................ 88
How to: Create Thumbnail of PowerPoint Document .................................................................. 88
DICOM ................................................................................................................................ 90
DICOM Overview.......................................................................................................................... 90
Programming with DICOM ............................................................................................................ 90
Load DICOM File .......................................................................................................................... 90
Convert DICOM to Image files ...................................................................................................... 90
41
Convert DICOM to Bitmap ............................................................................................................ 92
Convert Dicom to Tiff or PDF file ................................................................................................. 92
JBIG2 ................................................................................................................................... 94
JBIG2 Codec Overview .................................................................................................................. 94
Feature List .................................................................................................................................... 94
How to Decode an JBIG2 Image..................................................................................................... 94
JPEG 2000 ........................................................................................................................... 95
JPEG 2000 Codec Overview .......................................................................................................... 95
Feature List .................................................................................................................................... 95
How to Decode a JPEG 2000 Image ............................................................................................... 95
RasterEdge OCR ................................................................................................................. 96
OCRHandle ................................................................................................................................... 96
OCRRecSetting .............................................................................................................................. 96
class OCRPage ............................................................................................................................... 97
Multi-Language support ................................................................................................................. 97
Source Preparation ......................................................................................................................... 98
PDF and TIFF files OCR .............................................................................................................. 100
Image OCR .................................................................................................................................. 100
Zone Scanning ............................................................................................................................. 101
Exception: Resource Dictionary Preparation failed........................................................................ 102
RasterEdge RasterImage .................................................................................................. 103
RasterImage Overview ................................................................................................................. 103
Requirements ............................................................................................................................... 103
About RasterImage Programming Classes .................................................................................... 103
Convert Image ............................................................................................................................. 103
Load Image .................................................................................................................................. 104
Image Process .............................................................................................................................. 105
Programming with Images ......................................................................................... 106
Overview ............................................................................................................................ 106
Image Concept ................................................................................................................... 108
REImage, the Core Programming Class for Images ....................................................................... 108
Image Data................................................................................................................................... 108
Image Compressions .................................................................................................................... 108
Why Compression .................................................................................................................... 108
Types of Compression .............................................................................................................. 108
Image Codecs............................................................................................................................... 109
Supported Formats ................................................................................................................... 109
REImage the Core Image Class in RasterEdge Imaging SDK......................................... 110
Introduction ................................................................................................................................. 110
Requirements ............................................................................................................................... 110
How to Create REImage ............................................................................................................... 110
43
Create REImage from Image File, Stream & Byte Array ........................................................... 110
Create Image from Bitmap ....................................................................................................... 111
Imaging Conversion ..................................................................................................................... 111
Annotate on REImage .................................................................................................................. 111
Save REImage ............................................................................................................................. 112
Image Convert ............................................................................................................................. 112
How to Convert Between Raster Images ................................................................................... 113
How to Convert Raster Images to PDF or TIFF ........................................................................ 113
ImageProcessing ................................................................................................................ 115
Annotations........................................................................................................................ 116
Introduction to Annotations .......................................................................................................... 116
Requirements ............................................................................................................................... 117
Generate an AnnotationObject ...................................................................................................... 117
Burn Annotation to Document or Image ....................................................................................... 118
How to Burn Annotation Object to Document (PDF, TIFF, WORD, EXECEL, PPT) ................ 118
How to Burn Annotations on Imgaes ........................................................................................ 119
Annotations on ASP.NET DocumentViewer or Windows Form DocumentViewer ........................ 120
Annotation Assemblies ................................................................................................................. 120
Metadata ............................................................................................................................ 122
Introduction to Metadata .............................................................................................................. 122
Supported Metadata Types ....................................................................................................... 122
Image Formats Supporting Metadata ........................................................................................ 123
EXIF Metadata ............................................................................................................................. 123
Parse Exif Metadata from TIFF File ......................................................................................... 123
Embed Exif to TIFF ................................................................................................................. 123
Parse & Update Exif from File ................................................................................................. 123
XMP ............................................................................................................................................ 124
Barcode Read .................................................................................................................... 125
How to’s ...................................................................................................................................... 125
How to: Read Barcode from Image........................................................................................... 125
How to: Read Barcode from Document .................................................................................... 126
Advanced ReaderSettings ............................................................................................................. 128
Barcode Create .................................................................................................................. 129
How to’s ...................................................................................................................................... 129
How to: Draw Barcode on Image.............................................................................................. 129
How to: Create Barcode and Save as Image .............................................................................. 131
Advanced Settings ................................................................................................................... 132
TWAIN Scanning .............................................................................................................. 140
TWAIN Scanning Overview......................................................................................................... 140
Acquisition .............................................................................................................................. 140
TWAINDevice......................................................................................................................... 140
Getting Started with RETwain ...................................................................................................... 140
Setting Up Events .................................................................................................................... 141
32
Getting and Setting Properties .................................................................................................. 141
How to’s ..................................................................................................................................... 142
How to Do Console Based Scanning ........................................................................................ 142
How to Scan Many Pages into a PDF or TIFF file..................................................................... 143
Licensing RasterEdge Imaging ......................................................................................... 146
Purchasing License....................................................................................................................... 146
Introduction
About RasterEdge Document Imaging
RasterEdge Document Imaging is a powerful document imaging SDK and controls. With easy to
use document imaging APIs, user can implement functions of loading, saving, converting,
annotating and editing documents and images files. Supported Document formats include TIFF,
PDF, Microsoft Word, Excel, PowerPoint and DICOM. Png, Jpeg, gif, Bitmap among other
commonly used image formats are supported as well. The toolkit also includes a Windows
Forms control library, a Zero footprint ASP.NET AJAX-Enabled Server-Side document Viewer, and
a Twain library for Twain scanning. Annotation module is embedded in both Windows Form and
ASP.NET Web Form controls. Please try our online demo at http://www.rasteredge.com/dotnet-
imaging/web-viewer-demo/
The product feature includes:
x
Create document object from file, stream or byte array.
x
Create PDF or TIFF using image source obtained from file, data base or scanning process.
x
Load and parse Microsoft Word, Excel, and PowerPoint from file, stream
x
Display PDF, TIFF, Word, Excel and PowerPoint with customized options.
x
Batch conversion from supported documents to various image formats, such as JPEG,
PNG, and GIF.
x
Convert (print) TIFF, PDF, Microsoft Word, Excel, PowerPoint, and DICOM into PDF file
format.
20
x
Generate thumbnails image of document by setting zoom factor or resolution.
x
Draw and burn annotations on documents and images.
x
Advanced Windows Form control to load, display, annotate, OCR and save above
document formats.
x
Zero footprint WebForms document viewer controls to load, display, annotate, convert,
search and save above document formats with featured AJAX technology.
x
Add or scan barcode image from documents.
x
Add image (logo or watermark) to specified page in document.
x
Document processing like inserting, deleting, and reordering PDF document pages or
TIFF pages in multipage TIFF.
x
APIs to combine, split, extract TIFF and PDF documents or pages and enable batch
operations on document collection.
40
Deploy RasterEdge Imaging
Because RasterEgde Imaging toolkit is a collection of assemblies, you need to add reference to
specific assemblies in your project to use the APIs provided.
To add reference to RasterEdge Imaging assemblies in your project using Visual Studio:
a.
In the Solution Explorer, right-click on References, and click Add Reference.
You download
from our server.
b. Click the browse menu tab to locate RasterEdge.DocImageSDK8.x\Bin
c. Choose dlls that you want to use in your project.
d. Add using statement at the top of the code, for example
u
s
i
ng
R
a
s
t
e
r
Edge
.Im
ag
i
ng
.
B
a
s
i
c
;
Online Demo
Using RasterEdge document sdk, you can build a project to enable document viewing,
annotating, converting, and saving. We develop an online document viewer program to
illustrate these features.
You can not only try using our demo documents but upload your own documents as well.
See the demo at
http://www.rasteredge.com/dotnet-imaging/web-viewer-demo/
Documents you may be interested
Documents you may be interested