Giter Club home page Giter Club logo

Comments (19)

javacafe01 avatar javacafe01 commented on September 14, 2024 18

Hey all,

Just wanted to update on this. I've been plagued with lots of work from University, and I have layed low on this project for some time. I am planning to do the major backend change and kotlin rewrite over the summer.

from pdfviewer.

darkdragon-001 avatar darkdragon-001 commented on September 14, 2024 7

If you change libraries, make sure to add select&copy functionality (This is possible with muPDF according to the people on IRC!).

I am looking for an open-source PDF reader with similar functionality like the Dropbox one (They have exactly what I need while maintaining simplicity). I am willing to donate as well!

One thing which is important to me is simplicity: clean interface and small apk size. Of course, all PDFs including exotic fonts, features, pictures should be displayed correctly.

You might also have a look at OpenReadEra PDF library. It seems to be quite small in size.

from pdfviewer.

PFayoux avatar PFayoux commented on September 14, 2024 2

I've searching more stuff about text searching and actually text operation on a PDF like simply copy text from the PDF. Those features cannot and will not be available, if PdfViewer still use barteksc/AndroidPdfViewer as main library to open a PDF.

The main reason of this is barteksc/AndroidPdfViewer treat a PDF like a bitmap image, so it make it impossible to do anything related to text treatment.

If PdfViewer wants those feature it need another library.

from pdfviewer.

jtagcat avatar jtagcat commented on September 14, 2024 2

Check out https://mupdf.com/ for library?

from pdfviewer.

javacafe01 avatar javacafe01 commented on September 14, 2024 1

This is a difficult feature to implement, some help would be nice!

from pdfviewer.

 avatar commented on September 14, 2024 1

This would indeed be a really nice feature.

from pdfviewer.

retro-78 avatar retro-78 commented on September 14, 2024 1

+1

from pdfviewer.

PFayoux avatar PFayoux commented on September 14, 2024 1

From what I've seen, PdfViewer is mainly based on the library https://github.com/barteksc/AndroidPdfViewer. Actually That library doesn't enable searching text, some people also asked the developers to add that functionality to it.

I've been searching a way to implement it, I don't really see how to do it but maybe that library can help https://github.com/TomRoush/PdfBox-Android, it's an adaptation of Apache PDFBox to make it work on Android. Currently I can get the text of a pdf with TomRouch's PdfBox so I guess it's a start to do some string search on it, but I don't really see how to higlight text with barteksc's PdfView...

I also don't know if that's a good way to do it, but well if I got it to work I will share it with you.

from pdfviewer.

PFayoux avatar PFayoux commented on September 14, 2024 1

I actually have no time to work on this anymore, but sure mupdf is a good library. The mupdf application is good, but not really pretty, a remake of PdfViewer using the mupdf library could be a great thing.
And actually, I'm also a bit concerned about the fact that barteksc/AndroidPdfViewer is not maintained anymore, and should be less used and maintained than a library like mupdf, so I don't know if it has not any vulnerability and I also guess that it is less likely to be tested to find if it has any. MuPDF had vulnerability in previous version, but the developer always work to maintain their library.

from pdfviewer.

javacafe01 avatar javacafe01 commented on September 14, 2024 1

@PFayoux thanks for the input. These days have been quite busy for me, but I have been thinking for a long time to switch pdf handling libraries. As you know, the one I use is not maintained. I have been looking at MuPDF, and any other suggestions would be great. But as of this time, search cannot be implemented with the current library without some difficult work. I'm going to change this thread to be related with the switch of libraries, if anyone has feature requests regarding search or functions such as in MuPDF, redirect them here.

from pdfviewer.

woheller69 avatar woheller69 commented on September 14, 2024 1

Finally one pdf viewer that fulfills all my needs. Hope to see it on F-Droid soon

from pdfviewer.

juliusvonkohout avatar juliusvonkohout commented on September 14, 2024

i am happy to donate again for this feature if it is implemented.

from pdfviewer.

retro-78 avatar retro-78 commented on September 14, 2024

OK thank you for the information

from pdfviewer.

woheller69 avatar woheller69 commented on September 14, 2024

what about combining your look and feel with Orion Viewer? It is based on mupdf and has all the functionality (except printing).

from pdfviewer.

0xb1ff avatar 0xb1ff commented on September 14, 2024

Librera Reader is another open source app that can open PDF documents and search for text. Of course, the APK is a bit larger.

from pdfviewer.

Jakarrrg avatar Jakarrrg commented on September 14, 2024

OK, maybe search for text would be too much for a light PDF viewer, since I use librera pro to open large PDFs like ebooks and stuff, but for the simple one/two pages PDF documents I need a faster lighter viewer like this one. But being able to copy the text is very important to me as it is quite often needed from small documents. Is this option alone still diffiicult to implement? And the thing is, there also is no other open source light PDF viewer that is able for this task.

from pdfviewer.

mudlej avatar mudlej commented on September 14, 2024

Hello guys, I've just seen this issue while browsing the repo.
If anyone still needs this functionality, I've forked the project and added it.

You can check my app here
I used PdfBox-Android (that @PFayoux mentioned btw) to achieve that. You can learn more on how I did it here.

from pdfviewer.

woheller69 avatar woheller69 commented on September 14, 2024

Excellent, also copy text works.
Just the Print button is missing but this can achieved via share.

from pdfviewer.

mudlej avatar mudlej commented on September 14, 2024

The Print button is available in the Additional Options.
And glad you liked it.

from pdfviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.