We have moved to a new Sailfish OS Forum. Please start new discussions there.

Search in documents (pdf) [released]

asked 2014-02-10 09:38:41 +0200

Rolfa gravatar image

I have a lot of technical documentation in pdf format. To be able to search though a document would be very useful. Please add that feature.

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by Damien Caliste
close date 2017-04-11 13:50:19.439021

1 Answer

Sort by » oldest newest most voted

answered 2015-05-20 11:34:46 +0200


I'm proposing an implementation for this, see : https://together.jolla.com/question/90317/help-improve-document-application/

Do you have any remarks on the interface for this ?

The code is visible in my github (toolbar branch).

edit flag offensive delete publish link more


I installed as follows:

This version works fine so far, but as I understand, the in-PDF search is not yet in that version. Could you please make a new rpm available? Thanks!

Rolfa ( 2015-05-20 15:06:15 +0200 )edit

I've done a 0.2 revision on github : https://github.com/dcaliste/sailfish-office/releases/ with the search function. Feel free to report any suggestion or bug.

Damien Caliste ( 2015-05-20 15:39:44 +0200 )edit

Hi, Grateful for your efforts on this. Works fine and highlighted text animation looks cute.

anandrkris ( 2015-05-20 16:57:57 +0200 )edit

I installed 1.1.14. In-pdf search is nicely implemented. Maybe a little animation of the magnifying glass while searching would be useful.

In some pdfs no text is found. I suspect because of embedded fonts. Example http://service.us.panasonic.com/OPERMANPDF/DMCLX7_ADV.PDF

Rolfa ( 2015-05-21 12:32:04 +0200 )edit

I didn't put it in the answer here, but some polishing in the implementation remain to be done, like a feeback during searching for long documet, indeed.

For your PDF example, I look for "pana" string and it (finally) found it in different places. It didn't highlight the pana of the logo on the first page because it is an image. But "pana" in the url below is found. for instance.

This implementation currently lacks of thinking for very long documents. Indeed, all occurencies are looked for before displaying them. Maybe a smarter implementation would be required at some point, but I think it's better to release this simple implementation first and optimize later, if needed.

Damien Caliste ( 2015-05-21 15:12:52 +0200 )edit

Question tools



Asked: 2014-02-10 09:38:41 +0200

Seen: 349 times

Last updated: May 20 '15