Guide for C#
Core Document Formats
Additional Features

C# TIFF - Extract Text from TIFF File in C#.NET

Complete C# .NET Tutorial on How to Extract Text from TIFF File

Visual C#
Home > .NET Imaging SDK > C# > Extract Text from TIFF
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

C# Extract Text from TIFF File Overview
With RasterEdge .NET OCR reader and TWAIN scanning technique support, RasterEdge .NET TIFF DLL offers users mature and reliable APIs on extracting text from archiving TIFF files in Visual C# .NET. Using RasterEdge TIFF file text search and extraction toolkit, users are able to retain text content and formatting data and preserve text quality.
RasterEdge .NET Imaging SDK and its collaboration application are designed to provide strong tools to developers and end users that can do text search and extraction challenges. With our .NET Imaging SDK, users have the capabilities to build text extraction capabilities directly into .NET TIFF image processing applications. And the other supported formats for text extraction in our products include MS Word, MS Excel, PDF and DICOM.
Important aspects of TIFF file text search and extraction in C# class:
  • Significant benefits of TIFF file text extraction application in C# project
  • C# Windows application for extracting text from TIFF file
  • Complete methods on extracting text from TIFF page in C# application
  • C# demo code to extract text content from TIFF document with the flexible methods
  • Other related TIFF processing functions within .NET TIFF Imaging Add-on
Benefits of TIFF File Text Extraction in C#
  • Support building TIFF file text extraction capabilities directly into C#.NET application
  • Easy to search and extract text from single page TIFF file within C# class
  • Support multi-threaded engine to extract text content and format data from multi-page TIFF file
  • Ensure TIFF file image integrity and extracted text quality by using C# demo code
  • Easy to store the extracted text file to a repository
  • Other supported formats for text extraction in .NET Image SDK include MS Word, MS Excel, PDF and DICOM
  • Support 32 and 64 bit TIFF image processing binaries
C# Project for Extracting Text from TIFF File
This guide tells users how to create accurate C# application on extracting text from TIFF file supported by RasterEdge .NET Imaging SDK and its TIFF Processing Add-on using Visual C# sample codes. For VB.NET developers, please go to extract text from TIFF file in VB.NET.
  1. Open Visual Studio 2005 or any later version;
  2. Create the C# Windows project for TIFF file text extraction;
  3. Add following .NET Imaging references to your Visual C# applications;
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.TIFF.dll
  4. Declare .NET Image SDK and TIFF Processing Add-on namespace:
using System.IO;
using System.Drawing.Printing;
using RasterEdge.Imaging;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.TIFF;
C# Method to Extract Certain Pages Text from Multi-page TIFF
If you want to extract certain pages text content from multi-page TIFF file, please see the following C# method code.
public void TiffProcessorExtractTextPage(string TIFFInputFile, int 
TIFFPageNumberStart, int TIFFPageNumberStop, string TIFFOutputFile);
C# Code to Extract Certain Pages Text from Multi-page TIFF
The following code example demonstrates how to extract certain pages text from multi-page TIFF file using above method in C# project.
using System.IO;
using System.Drawing.Printing;
using RasterEdge.Imaging;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.TIFF;

RasterEdgeImaging TIFF = new RasterEdgeImaging();

public void TiffProcessorExtractTextPage();
{
TIFFInputFile = (@"C:/1.tiff");
TIFFPageNumberStart = "0";
TIFFPageNumberStop = "4";
TIFFOutputFile = OutputFormat.txt;
TIFFOutputFile = (@"C:/extract.txt");
};
tiff.TiffProcessorExtractText (@"C:/1.tiff", "0","4", @"C:/extract.txt");
C# Method to Extract Certain Area Text from Single Page TIFF
Besides the method for extracting certain pages text from TIFF, RasterEdge still provides the API on extracting text from certain area of TIFF page. Please see the following sample C# method code.
public void TiffProcessorExtractTextArea(string TIFFInputFile, Rectangle ExtractedArea, string TIFFOutputFiles);
C# Code to Extract Certain Area Text from Single Page TIFF
The following C# demo code demonstrates how to extract text from certain area of TIFF file page by using the compliant method.
using System.IO;
using System.Drawing.Printing;
using RasterEdge.Imaging;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.TIFF;

RasterEdgeImaging TIFF = new RasterEdgeImaging();

public void TiffProcessorExtractTextArea();
{
TIFFInputFile = (@"C:/1.tiff");
ExtractedArea = new rectangle(0, 0, 300, 300);
TIFFOutputFile = OutputFormat.txt;
TIFFOutputFile = (@"C:/extract.txt");
};
tiff.TiffProcessorExtractArea(@"C:/1.tiff", new rectangle(0, 0, 300, 300), @"C:/extract.txt");
Other Quality TIFF Processing Functions in C#
RasterEdge .NET TIFF Processing toolkit not only supports extracting text from TIFF document, but also supports TIFF page inserting, rotating, sorting, splitting, reordering, etc. And these TIFF image functions are easy to be incorporated within extensive .NET applications, including VB.NET, ASP.NET, C#.NET and .NET WinForms.


Recommend this to Google+