Source code documentation samples provide quick and easy way to add a required functionality into your application. ByteScout PDF Extractor SDK: the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction. It can extract text from PDF in ASP Classic.
Fast application programming interfaces of ByteScout PDF Extractor SDK for ASP Classic plus the instruction and the code below will help you quickly learn how to extract text from PDF. Just copy and paste the code into your ASP Classic application’s code and follow the instruction. Enjoy writing a code with ready-to-use sample ASP Classic codes.
Download free trial version of ByteScout PDF Extractor SDK from our website with this and other 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 %>