UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    No pdf viewer does perform text searches?

    Scheduled Pinned Locked Moved Support
    5 Posts 3 Posters 792 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • J Offline
        JuanGRodeja
        last edited by

        Is there a fundamental problem making that difficult? I only know the pdfjs viewer and the Document viewer, neither of which do that task. Does anybody know a web application doing that, by the way?

        1 Reply Last reply Reply Quote 0
        • H Offline
          hummlbach
          last edited by

          @JuanGRodeja i think it depends on how the PDF was created whether its easy to search in them or not. If the PDF is basically only an image it gets difficult. Nonetheless possible for example M$ Onenote, does some OCR to let you search in these... That maybe would be a more advanced feature, but for other PDFs, i guess it shouldn't be that difficult. Please open a feature request issue here: https://github.com/ubports/docviewer-app/issues

          J 1 Reply Last reply Reply Quote 1
          • B Offline
            BryWilson
            last edited by

            In my current mission to use our Ubuntu Touch phones as fully-convergent computers, I installed pdftotext in the terminal and use this handy little one-liner to search all PDFs in a folder:

            find $PATH -name '*.pdf' -exec sh -c 'pdftotext "{}" - | grep --with-filename --label="{}" --color "TEXT TO SEARCH FOR"' ;

            Where $PATH is the full path you want to search and "TEXT TO SEARCH FOR" is um, the text you want to search for.

            In a slightly more elegant way - and as I have - you can use emacs (in my mind, the only way to fully unleash the power of a convergent machine in your pocket!) on UT, install recoll and helm-recoll and then have instant searching through PDFs for text

            1 Reply Last reply Reply Quote 0
            • J Offline
              JuanGRodeja @hummlbach
              last edited by

              @hummlbach said in No pdf viewer does perform text searches?:

              @JuanGRodeja i think it depends on how the PDF was created whether its easy to search in them or not. If the PDF is basically only an image it gets difficult. Nonetheless possible for example M$ Onenote, does some OCR to let you search in these... That maybe would be a more advanced feature, but for other PDFs, i guess it shouldn't be that difficult. Please open a feature request issue here: https://github.com/ubports/docviewer-app/issues

              Thanks. Done.

              1 Reply Last reply Reply Quote 0
              • J Offline
                JuanGRodeja
                last edited by

                Thanks everybody!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post