An easy to understand sample source code to learn how to extract text from PDF with PDF extractor SDK in ASP Classic ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can extract text from PDF with PDF extractor SDK in ASP Classic.
Want to save time? You will save a lot of time on writing and testing code as you may just take the ASP Classic code from ByteScout Premium Suite for extract text from PDF with PDF extractor SDK below and use it in your application. Just copy and paste the code into your ASP Classic application’s code and follow the instructions. Use of ByteScout Premium Suite in ASP Classic is also described in the documentation included along with the product.
You can download free trial version of ByteScout Premium Suite from our website to see and try many others source code samples for ASP Classic.
<% ' In case of "Server.CreateObject Failed", "Server object error "ASP 0177 : 8000ffff" or similar errors: ' Please try the following: ' - Open IIS ' - Find application pools (DefaultAppPool is used by default) ' - Open its properties and check .NET CLR version selected: ' - if you have .NET 1.1 then change to .NET CLR 2.00 ' - if you have .NET CLR 2.00 then try to change to .NET CLR 4.0 Set extractor = CreateObject("Bytescout.PDFExtractor.TextExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile("..\..\sample2.pdf") ' Save extracted text to file outputText = extractor.GetText() response.ContentType = "application/text" ' add content type header response.AddHeader "Content-Type", "application/text" ' set the content disposition response.AddHeader "Content-Disposition", "inline;filename=HelloWorld.text" ' write the output text response.Write OutputText response.End Set extractor = Nothing %>