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 PDF 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. Enjoy writing a code with ready-to-use sample ASP Classic codes.
If you want to try other source code samples then the free trial version of ByteScout PDF Suite is available for download from our website. Just try 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 %>