Link Search Menu Expand Document

Getting Started in ASP Classic (as ActiveX)

The following sample demonstrates how to extract text from PDF in ASP classic

VB
<%
' Create Bytescout.PDFExtractor.TextExtractor object
Set extractor = CreateObject("Bytescout.PDFExtractor.TextExtractor")
extractor.RegistrationName = "demo"
extractor.RegistrationKey = "demo"

' Load sample PDF document
extractor.LoadDocumentFromFile("..\..\sample2.pdf")

' Get page count
pageCount = extractor.GetPageCount()

For i = 0 To pageCount - 1
    fileName = "page" & i & ".txt"

    ' Save extracted page text to file
    extractor.SavePageTextToFile i, fileName
Next


%>