[File Viewer] Support pdf files #181

Closed
opened 2020-06-03 22:00:44 +00:00 by mmarif · 10 comments
Owner

Came up in issue #175

Came up in issue #175
mmarif added this to the 2.4.0 milestone 2020-06-03 22:00:44 +00:00
mmarif added the
🎉 Feature
label 2020-06-03 22:00:44 +00:00
Member

@s4ne here it is ;)

@s4ne here it is ;)
Member

Created By: @s4ne

Wow, thank you so much! (:

Created By: @s4ne Wow, thank you so much! (:
Member

@s4ne suscribe to this issue to stay informed ;)

at the moment this wont happen automaticaly

@s4ne suscribe to this issue to stay informed ;) at the moment this wont happen automaticaly
Author
Owner

I have a test branch on local system for pdf files and the interesting part is the generated APK have bunch of heavy libraries now which made it around 23MB in size. That's huge by the standard of GitNex which is around 4MB right now.

Tested this library, works like a charm but the size is big minus for me.

https://github.com/barteksc/AndroidPdfViewer

APK size FAQ

https://github.com/barteksc/AndroidPdfViewer#why-resulting-apk-is-so-big

I have a test branch on local system for pdf files and the interesting part is the generated APK have bunch of heavy libraries now which made it around 23MB in size. That's huge by the standard of GitNex which is around 4MB right now. Tested this library, works like a charm but the size is big minus for me. https://github.com/barteksc/AndroidPdfViewer APK size FAQ https://github.com/barteksc/AndroidPdfViewer#why-resulting-apk-is-so-big
Member

https://f-droid.org/en/packages/org.sufficientlysecure.viewer/ -> 9MB

two options: use other apps do display files
or find a lighweight lib @mmarif

https://f-droid.org/en/packages/org.sufficientlysecure.viewer/ -> 9MB two options: use other apps do display files or find a lighweight lib @mmarif
Author
Owner

It depends on the library used. I am still looking for best solution though.

If you find any, please share here.

It depends on the library used. I am still looking for best solution though. If you find any, please share here.
Author
Owner

use other apps do display files or find a lighweight lib

I am looking for lightweight lib to include in the app. Otherwise use other app like Document viewer to view the files after download.

But priority is to include in the app. 😄

> use other apps do display files or find a lighweight lib I am looking for lightweight lib to include in the app. Otherwise use other app like Document viewer to view the files after download. But priority is to include in the app. :smile:
Member

Created By: @lcnittl

I hope this fits this issue: Do you think it is possible to initiate a download for binaries that cannot be shown inside the app (I am thinking of pdf (as long as there is no in-app preview), eps, docx, etc)? Then the OS can take care of it.

Probably worth another issue, but could this also allow LFS support (currently the pointer is shown in plain text with no option to download the raw file)

Created By: @lcnittl I hope this fits this issue: Do you think it is possible to initiate a _download_ for binaries that cannot be shown inside the app (I am thinking of pdf (as long as there is no in-app preview), eps, docx, etc)? Then the OS can take care of it. Probably worth another issue, but could this also allow LFS support (currently the pointer is shown in plain text with no option to download the _raw_ file)
Member

@lcnittl create a new issue for this

@lcnittl create a new issue for this
Author
Owner

@lcnittl I totally agree to download files. More from me is here https://gitea.com/gitnex/GitNex/issues/254

On PDF, as I could not find any other library so I will stick with the feature rich PDF library. It will make the app size little bigger but I beleive it is worth it.

@lcnittl I totally agree to download files. More from me is here https://gitea.com/gitnex/GitNex/issues/254 On PDF, as I could not find any other library so I will stick with the feature rich PDF library. It will make the app size little bigger but I beleive it is worth it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#181
No description provided.