Skip to main content
October 20, 2017
Answered

How can I use vb program to get the text from pdf ?

  • October 20, 2017
  • 2 replies
  • 496 views

Here is a function that I can get the page's number of the pdf file.

Public Function GetNumPages(ByVal PdfFile As String) As Long

    Dim objTempDoc As Object

    Dim fso As FileSystemObject

    Set fso = New FileSystemObject

    If fso.FileExists(PdfFile ) Then

        Set objTemp = CreateObject("AcroExch.PDDoc")

        objTemp.Open pstrPdfFilename

        GetNumPages = objTemp.GetNumPages

        objTemp.Close

        Set objTemp = Nothing

    End If

    Set fso = Nothing

End Function

Now I want to get the last line's text in the last page of pdf.

I have no idea to get the text.

Where can I read the technical manual or some document?

This topic has been closed for replies.
Correct answer Bernd Alheit

You will find the documentation in the Acrobat SDK.

2 replies

Legend
October 20, 2017

Tip: you will need to use the VB:JavaScript bridge.

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
October 20, 2017

You will find the documentation in the Acrobat SDK.