Problem with Search in PDF.JS Express viewer

Hello,

I have integrated PDF.js express viewer in AngularJS application.

All functionality working fine except search.

Search functionality not working with large file having more than 200 pages but it’s working fine when I tested it with around 20 pages.

Here your help would be more appreciated.

Thanks & Regards,
Mehul Sathwara

Hello sathwaramehul88,

I was unable to reproduce this with the test files I have, can you provide an example file that the search is not working?

Thank you,
Tyler

Hello Tyler,

Thanks for the quick reply.

attached pdf file here.

Geeta.pdf (2.7 MB)

Thanks,
Mehul Sathwara

Hello sathwaramehul88,

It looks like the text here is not available due to the font not being available on the PDF. Youll need to provide the font through this api:

instance.Core.setCustomFontURL("url to the font")

Best regards,
Tyler

Hello Tyler,

I tried your provided solution by considering Gopika font but still it’s not working.

https://static.typeingujarati.com/fonts/legacy/Gopika/Gopika.ttf

Note: My pdf file contains both English and regional text.

Thanks & Regards,
Mehul sathwara