I have a URL which points to some PDF file. The thing I want to achieve is to share it with some app. Sharing not a link, but the PDF file itself. The question is how to achieve this? With my investigation I came to the following conclusion:
Download it using Retrofit
Save it inside device
Get somehow the path of the file and share it
Is it correct path to solve the problem? Maybe there are other, more easy solutions?
Related
I am trying to create an app that will be able to display a pdf file in the app itself. I'm currently using the Xamarin.Bindings.PDFView-Android by SIDOVSKY which works really nicely. I can open a file easily from the assets... what I'm struggling to do is open a file from the internet.
Just a single line of code:
FindViewById<PDFView>(Resource.Id.pdf_view).FromAsset("report.pdf").Show();
Is enough to display a PDF that can be pinched to zoom which is great. However, I now want to access a file stored on the local network. Either using a SMB share, or through the intranet. Whichever way I try I can't figure it out.
There is a .FromFile setting, but I can't get it to work by putting a smb path in here. Is there a way to convert this? Or must I download the file to the local device first?
Thanks
Andrew
May be like Duplicate, but I cant find most suitable answer for me. Many examples have explain about img files. like this, Android Java Upload File via WebView without FileChooser I want to upload .db file into my web server from my android application using Webview. but I cant understand what I want to do. Is that possible (upload .db file)? And if yes, what I want to do? Im new for android.
I already shown a PDF file in android device. But I need to scribble (writing with my finger) in that PDF page and I need to save the changes with existing PDF file itself in the sdcard. I searched so many source codes but i can't get what i am expected. Could you anyone help me on this. Thanks.
I am working on android applications. I gone through the link http://dhruvvaishnav.blogspot.in/2013/05/download-file-to-your-android-device.html and able to display the pdf file. But now my problem is with security. When I display the pdf file in my android application it is possible to save that file. But according to my requirement the pdf file should not be saved. It should be only readable and should not be savable. What is best solution for this?
Please anybody help me with this issue.
Thanks in advance
In my project I have to load the contents of a PDF located in the assets folder onto a WebView.Can It be achieved directly just by reading the contents onto a WebView.. I googled a lot and I found that i need to use third party PDF readers to achieve the same?
If so, Plz give me the links of the source of the PDF reader of GITHUB. Am not able to find it..
If you load pdf inside the webview, unicode text type or images wont be visible. So you want
to go for OCR tool.
Use set of libraries and sdk
This might help you
http://www.qoppa.com/android/pdfsdk/
http://code.google.com/p/droidreader/
mupdf is the best library in terms of performance and all i have found till now, you can also use it in your application.
But it needs knowledge of ndk.
Click here for more description