PRODUCTS   DOWNLOAD PURCHASE SUPPORT BLOG  COMPANY  
 
Key Features
PDF to Word, RTF
PDF to Word, DOCX
PDF to Images: JPEG, TIFF
PDF to HTML
PDF to Excel new!
PDF to XML new!
>>PDF to Text
Download trial
Purchase
Online-demo
Documentation
What's New
Tutorials & Videos
How to convert PDF to JPG with high Quality in C# and .Net.
How to convert PDF to Word in C#.
How to convert PDF to Jpeg in C#.
Extract Text from PDF in C#.
How to convert PDF to Multipage TIFF in C#.
How to convert PDF to Black-White Multipage TIFF in C#.
Delphi.Net – How to convert PDF to Word.
How to convert a password protected PDF document.

"Simple way to extract Text from PDF in C# .Net?"

Simple way to extract Text from PDF in C# .Net?

Introduction

     If you are looking for a .Net library to extract text data from PDF, you are in the right place. PDF Focus .Net helps you extract text from any PDF document.

To illustrate how to easily extract text from PDF, let's look at simple code in C#:
            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();

            f.OpenPdf(@"c:\Pushkin Poems.pdf");

            if (f.PageCount > 0)
            {                
                f.ToText(@"c:\Pushkin Poems.txt");
            }       
          
You will be able extract a text from a whole document or from specific pages. The library extracts good-looking text without unwanted spaces between the letters in words and supports Unicode symbols.

Furthermore, a text layout looks the same as in the RTF with proper line breaks and columns.

Download PDF Focus .Net Online Demo


Have a Question?

You have a question, need a support or a code example: ask our support team at support@sautinsoft.com. We will help you quickly and with pleasure.



What PDF Focus .Net gives me:

  1. Save time and cost of the product development. The writing of own PDF converter in C# requires a lot of days of hard work and takes approx 100 000 C# code lines. PDF Focus .Net will save a lot of my time and I'll need only to add the reference to "SautinSoft.PdfFocus.dll" and write 3-4 C# code lines.

  2. The one product provides me by set of API to convert PDF at various formats at once: Word, DOCX, RTF, Excel, HTML, Text, Multipage TIFF, Jpeg, PNG.

  3. Because of this is absolutely standalone PDF library, my clients don't need to have Adobe Acrobat, MS Word, Excel or other software.

  4. My software will have the one of the fastest API to convert PDFs inside, you may check this.

  5. I can select the any of product editions: Total, Office, HTML and Picasso. This saves my money. Let's us say, that I'm looking for only the API to convert PDF to HTML and don't need other features. Given this point, I can purchase the "HTML" edtion of PDF Focus .Net. It's much cheaper than competitor's price.

  6. The one time price. I pay a one time and can use «PDF Focus .Net» for a whole life without any additional fees. My license will never expires.

  7. As bonus, I get unlimited technical support during a whole life for free and independently of the date of my purchasing.

Some examples to convert RTF to Text in C# and VB.Net

1. Convert RTF file to Text using C#:

            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
	
            f.OpenPdf(@"d:\Cook Book.pdf");

            if (f.PageCount > 2)
            {
                //Convert only pages from 2 to 3 in Text
                f.ToText(@"d:\Cook Book.txt", 2, 3);
            }
2. Convert whole PDF document to Text in memory using C#:
            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();

            //Read PDF to byte array
            byte[] pdf = File.ReadAllBytes(@"d:\Sample.pdf");

            f.OpenPdf(pdf);

            if (f.PageCount > 0)
            {
                string text = f.ToText();

                //Save to text file
                File.WriteAllText(@"d:\Sample.txt", text);
            }
3. Extract Text from all pages of PDF in ASP.Net/VB.Net:
        Dim f As New SautinSoft.PdfFocus()
        Dim url As New Uri("http://www.website.com/sample.pdf")
	
        f.OpenPdf(url)

        If f.PageCount > 0 Then
            'Convert whole PDF to Text (extract text from PDF)
            Dim text As String = f.ToText()

            'show text
            TextBox1.Text = Text

        Else
            TextBox1.Text = "Converting failed!"
        End If
4. Convert 1st page of PDF to Text in VB.Net:
        Dim f As New SautinSoft.PdfFocus()

        Dim pdf() As Byte = File.ReadAllBytes("d:\Simple.pdf")
        Dim text As String = ""

        f.OpenPdf(pdf)

        If f.PageCount > 0 Then
            text = f.ToText(1, 1)

            'show text
            If text <> "" Then
                TextBox1.Text = text
            End If
        End If
If anyone needs a code sample in C#, VB.Net, ASP.Net etc "How to extract Text from PDF", email us at support@sautinsoft.com or ask at Online Chat (right-bottom corner of this page). We'll help you certainly!


Requrements and Technical Information

     Requires only .Net 4.0 or higher. Our product is compatible with all .Net languages and supports all Operating Systems where .Net Framework can be used. Note that PDF Focus .Net is entirely written in managed C#, which makes it absolutely standalone and an independent library.



Reasonable prices

     The library offers developers the high quality conversion at reasonably prices. The main point of interest is that PDF Focus .Net is less expensive than all of its more or less popular counterparts. For example, a single license for PDF Focus .Net - HTML Edition cost $399 and the Total Edition starts from $578.


Download

To see this functionality firsthand, download the freshest «PDF Focus .Net» with code examples, 16.7 Mb.

 
 
Products Downloads Support Company
Buy now
Follow us on Google Plus SautinSoft on Facebook SautinSoft on Twitter SautinSoft on Youtube Our Blog
Copyright © 2002 - 2017 SautinSoft (started from sautin.com). All rights reserved.