pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
972 stars 418 forks source link

Search not working in one specific page #170

Open fcazares opened 6 years ago

fcazares commented 6 years ago

Hi

I'm using pdfiumviewer to search inside a pdf file. The file has 3 pages. The Search command works perfectly with the text inside page 1 and 3 but if I search for any word inside page 2 I get no results.

To check I used the GetPdfText command and got the next results.

In page 1 and 3 I get this

000101 $1,000 000104 $1,000 000142 $1,000 000192 $1,000

And page 2 returns this

1 6 8 5 5 2 $ 2 , 5 0 0 1 6 8 5 6 9 $ 1 , 0 0 0 1 6 8 6 1 2 $ 2

The search doesn't work because I have no complete numbers in the page 2 text. Any idea why the component reads the internal text like this?

Thanks