I have a PDF file which is generated in crystal Report version 13.0.0.99 which
generate a Pdf of Version 1.7 .but all other PDF which is not generated by Crystal Report can read in my application.
this link will get PDF file I created using Crystal Report.
http://www.mediafire.com/?d9b444vx0102vea
when i view this pdf in android i got the out put as
http://www.mediafire.com/view/?v0wzlqzhzqtiswb
what should I do to see this pdf in my application itself ?
Lots of sources for opening/ editing pdf(not sure from your question) on stackoverflow
1.) Use an intent to open a pdf - it ll open using an existing pdf viewer installed
2.) Take a look at
PDF Library for Android - PDFBox?
Android PDF Rendering
for open source libraries, commercial ones etc.,
Basically pdf and android dont go well together from a developer standpoint
Related
I have pdf file download in my device on known location. I want to display it within my application. I tried several pdf viewer libraries like:
https://github.com/JoanZapata/android-pdfview <--- This is deprecated.
https://github.com/jblough/Android-Pdf-Viewer-Library <--- Does not display pdf properly. I mean it has several issues while loading pdf.
https://github.com/barteksc/AndroidPdfViewer <--- So far best I could find over the internet.
But none of the above work on hyperlinks to navigate to certain header within the file.
I know i can display pdf file in Google drive viewer, but I don't want that.
So anyone can suggest me relevant pdf viewer library in android which I can plug in my project?
Use google doc viewer to view pdf without any external library.
String pdf = "http://www.pdf995.com/samples/pdf.pdf";
webview.loadUrl("http://drive.google.com/viewerng/viewer?embedded=true&url=" + pdf);
I have a doc/ppt/xls file located in my sd card. I want to open it without any third party app (i.e within my app itself) using webview. Though I am able to open documents by embedding it in google docs url like -
http://docs.google.com/gview?embedded=true&url=[filelinkHere]
But how to open a file located in internal or external storage in webview ?
Also, Suggest me any third party ALL-IN-ONE library for android to view all types of documents. I have tried ASPOS but it has few unresolved bugs and APACHE-POI is difficult to use.
I had the same issue few days ago .
i found Android PdfViewer best to view PDF files and Android PdfMyXml best to create pdf files in android.
For working with Word and Excel as a most reliable answer I suggest you to take a look at OliveDocLibrary .
If your documents are in cloud so there is an alternative way to display docx,pptx,pdf and such formats with a combination of Webview and googleDoc.
You might find other possible solutions in server-side machines or maybe a creative way!
Hope it help
You can integrate some library project to your project with which you can open the pdf file inside your app.
Reference :
https://github.com/tekinarslan/AndroidPdfViewer
https://github.com/JoanZapata/android-pdfview
I am developing an web+cross platform app using Jquery Mobile+PhoneGap+Android. In web app, I am able to open pdf file links within my app page using iframe. But, in Phonegap generated Android build, iframe is unable to render pdf content,it is showing that iframe area as empty.How can I display the pdf file/content, whose src I know at runtime, within android webview. Thanks In Advance.
I've just published my plugin, which can open almost any type of file, which is stored locally on Android device.
Please take a look at: https://github.com/markeeftb/FileOpener
Plugin opens external application which handles the preview of the document.
I am using this https://github.com/jblough/Android-Pdf-Viewer-Library - Basically a wrapped jar for the andpdf viewer for Android. I am not able to open a single pdf even though I 've followed the activity creation instructions to the letter.It alsways shows pdf loading. It is the only one I can use since it is under LGPL and I have to incorporate it in my proprietary project. The other ones I ve found either use MuPDF which is under GPL or use itext and only can be used to create PDF's. I've raised this issue on both andpdf and the wrapper sites but havent received responses.Has anyone solved this performance issue wrt ANDPDF. OR has anyone used a jar under LGPL to open pdf's in android?
For the andpdf jar - I am passing the path to the file as a URI to the function in the Jar.
Figured it out - Actually I was passing the file Name to the wrong activity - It has to be passed to the activity in the Jar and not to the locally created activity
I want to implement PDF viewer in my Android application. My application has option of reading some document and I want to open those doc in PDF by default. My application .apk is ready and I have PDF viewer apk with me. What I want is to merge these 2 apk into a single project?
If you don't have the code for both projects it's not really possible to merge them into a single project. You can call the PDF Viewer from your application using Intents.