.NET PDF to Text Converter SDK

ASP.NET: Extract PDF Text & Convert
CnetSDK .NET PDF to Text Converter is compatible with ASP.NET, C#, VB.NET applications. It can be worked as a PDF text extractor and a PDF to text converter for ASP.NET web projects. If you need a .NET web application library for PDF text extraction and PDF to txt conversion, CnetSDK .NET PDF to Text Converter library is the right choice. Accurate and fast PDF text extractor and converter features can be easily integrated into your ASP.NET web projects.
USE IN ASP.NET PROJECT: THINGS YOU SHOULD KNOW
After downloading free trial of CnetSDK .NET PDF TEXT Extractor & TXT Converter, you may directly add the library dll into your Visual Studio ASP.NET web project. Please choose the suitable ASP.NET PDF extractor & converter library dll based on your Windows System (32 or 64 byte) and .NET Framework version.

As for free trial package of CnetSDK .NET PDF to Text Converter, you can only get and extract text from the first five PDF pages, or render & convert these pages of PDF to txt file in ASP.NET project. If you want to use this ASP.NET PDF text extractor & PDF to text converter library to extract and convert PDF file, please make an order for product license.
USE IN ASP.NET PROJECT: C# & VB.NET CLASS CODES
CnetSDK .NET PDF to Text Extractor & Converter for ASP.NET provides mature APIs for you to recognize and extract text from PDF file, and transform & convert PDF to text file. You can load a PDF document from Stream or String to ASP.NET web project, and then extract PDF text and show it on ASPX web page. Here, we provide C# class code and VB.NET class code for your quick evaluation.
C# Class Code: Extract PDF Text & Show On ASPX Web Page

   
using System;
using System.Web;
using CnetSDK.PDFtoText.Converter.Trial;
 
public partial class _Default : System.Web.UI.Page
{
  protected void Page_Load(object sender, EventArgs e)
  {
    // Prepare a PDF document for your ASP.NET web project.
    string PdfFileName = Server.MapPath("F:/CnetSDKTest.pdf");
 
    // Create an instance of .NET PDF text extractor object.
    CSPdfExtractor PDFTextExtractor = new CSPdfExtractor();
 
    // Load your PDF document to ASP.NET web project.
    PDFTextExtractor.LoadPdfFile(PdfFileName);
 
    // Recognize and extract text from the first page of PDF.
    string Text = PDFTextExtractor.ConvertToText(0);
 
    // Prepare a response.
    Response.Clear();
    Response.ContentType = "text/html";
 
    // Output and show text on ASPX web page.
    Response.Write(Text);
  }
}

VB.NET Class Code: Extract PDF Text & Show On ASPX Web Page

   
Imports System
Imports System.Web
Imports CnetSDK.PDFtoText.Converter.Trial

Public Class _Default
    Inherits Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        ' Prepare a PDF file for your ASP.NET web application.
        Dim PdfFileName As String = Server.MapPath("CnetSDKTest.pdf")


        ' Create an instance of .NET PDF text extractor object.
        Dim Pdftextextractor As CSPdfExtractor = New CSPdfExtractor()


        ' Load your PDF file to ASP.NET web application.
        Pdftextextractor.LoadPdfFile(PdfFileName)


        ' Get and extract text from the first page of PDF.
        Dim Text As String = Pdftextextractor.ConvertToText(0)


        ' Prepare a response.
        Response.Clear()
        Response.ContentType = "text/html"


        ' Output and show text on ASPX web page.
        Response.Write(Text)
    End Sub
End Class

If you want to see more .NET APIs for ASP.NET web application PDF text extraction & PDF to text conversion, please refer to this online tutorial: Online Tutorial for .NET PDF to Txt Converter & PDF Text Extractor.