Hi all, I have a PDF file which is non-searchable.
I have tried several ways to read the content inside the PDF file. But failed to read it.
If the PDF is searchable, I can use below code to read it.
Dim pdfDocumentView As New PdfDocumentView()
pdfDocumentView.Load(openFileDialog.FileName)
For i As Integer = 0 To pdfDocumentView.PageCount - 1
Dim extractedLines As String = pdfDocumentView.ExtractText(i, textLines)
Dim linesArray As String() = extractedLines.Split(New String() {Environment.NewLine}, StringSplitOptions.None)
For Each line As String In linesArray
extractedText += line & Environment.NewLine
Next
Next
So, please show the guide, how to convert non-searchable PDF to search PDF?
or
any way to get content from non-searchable PDF?