Visual C#.NET: Convert PDF to Text

How to convert PDF to Text using C#.NET
Converting PDF to editable Text is one of the most common features of Yiigo.Image for .NET, which lets you perform instantaneous conversions without having to rely on the Acrobat software. Find more PDF conversion information on Yiigo.Imaging for .NET PDF Plugin.
Yiigo.Image for .NET PDF Plugin has those following functionalities:
This document provides comprehensive Visual C#.NET samples for guiding developers to convert PDF to Text using Yiigo.Image for .NET. Find more PDF conversion tutorials on VB.NET PDF Conversion to Text, Web Imaging Viewer PDF to Text Conversion Support and Convert PDF to Text in .NET Winforms.
PDF Converting to Text with C#.NET Sample Code


If you want to convert PDF to Text in Visual C#.NET, make sure that you have installed.

Start to Convert

  • Open and run your Microsoft Visual Studio;
  • Choose either "Visual C# Projects" in "New Project" dialog box;
  • Choose "Windows Application" in the "Templates" List and name it "YiigoImagingPdfConvertTextCsharp";
  • Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
  • In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library and Yiigo.Imaging.Net.Pdf.Read.dll;
  • Add it to your Visual C# applications;
  • Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO;
using System.Drawing.Printing;
using Yiigo.Imaging;
using Yiigo.Imaging.Processing;
using Yiigo.Imaging.Conversion;

using YiigoImage Image = new YiigoImage();
// Convert Text to PDF documents
public void ConversionTexttoPdf();
string TextFileName = (@"C:\ yiigo_example.txt");
ImageFormat ImageFormat = ImageFormat.pdf;
public Image ConversionPdftoText(@"C:\ yiigo_example.txt", ImageFormat.pdf);
doc.Save(@"C:\ yiigo_example.pdf");

// Convert PDF documents to Text
public Image ConversionPdftoText();
string PdfFileName = (@"C:\ yiigo_example.pdf");
int PdfPageNumber = "1";
ImageFormat ImageFormat = ImageFormat.txt;
public void ConversionTexttoPdf(@"C:\ yiigo_example.pdf", "1", ImageFormat.txt);
doc.Save(@"C:\ yiigo_example.txt");
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner