Giter Club home page Giter Club logo

Comments (10)

ioshomebrew avatar ioshomebrew commented on September 14, 2024 2

I can work on implementing this feature

from pdfviewer.

opusforlife2 avatar opusforlife2 commented on September 14, 2024 1

Conspiracy theory: Google broke things so only their Drive app could have this functionality. 👀

from pdfviewer.

ioshomebrew avatar ioshomebrew commented on September 14, 2024

Just did some testing and it appears it already works in Android 6, but something changed in Android 7 that prevents it from working

from pdfviewer.

PFayoux avatar PFayoux commented on September 14, 2024

Actually that functionality work, I implemented it some months ago... Well maybe it doesn't work for everything, can you tell us from which app the link come from ?

To test I use an Android 9 phone and open a link to a PDF from Firefox to PdfViewer and it work perfectly...

Is there only a problem on Android 7 ? :(

from pdfviewer.

opusforlife2 avatar opusforlife2 commented on September 14, 2024

Ah. A little more testing done.

I was using Fenix to try and share a link to PDF Viewer, but it doesn't show up in the Share Sheet. That threw me off, since Librera does show up. Could that be added?

Using Firefox for Android's 'Open in App' feature does indeed work, but it downloads the file permanently. I was hoping for it to be cached, and deleted upon closing PDF Viewer. Is that feasible?

(Google Drive's PDF Viewer also has an option to permanently save a cached PDF if you feel like it, though that might amount to feature creep, since it can be downloaded separately anyway. Still would be nice to have. ^_^ )

from pdfviewer.

ioshomebrew avatar ioshomebrew commented on September 14, 2024

I was testing Google chrome and it didn't work, perhaps there's no fix since there's no way on android 7+ to get the os to detect that it can open files without download

from pdfviewer.

opusforlife2 avatar opusforlife2 commented on September 14, 2024

If it works for Google Drive, there must be a way, mustn't there?

from pdfviewer.

ioshomebrew avatar ioshomebrew commented on September 14, 2024

Google Drive is a file explorer app (which the open with feature already works with), Google Drive likely downloads the file and then opens it in the app you choose

from pdfviewer.

opusforlife2 avatar opusforlife2 commented on September 14, 2024

Sure. The file cannot be shown without being downloaded, even for desktop browsers. But they store it in a temp directory and then either delete it or it gets cleaned up with a restart.

Google Drive has an inbuilt PDF viewer (see OP) which directly downloads the PDF (temporarily) and shows it. The main app has no role (unless you choose to save the PDF to Drive) and you can use this PDF Viewer activity as a standalone.

from pdfviewer.

opusforlife2 avatar opusforlife2 commented on September 14, 2024

Wait, I just discovered that the print button has a Save to PDF option. All I need now is for the PDF to be temporarily cached instead of downloaded for viewing.

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.