Click here to Skip to main content
16,019,843 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to open the pdf file inside the application without any external pdf application.I had tried the MuPdf library, Pdfviewer and some other libraries. But no use of that libraries. Kindly help me. Thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 5-May-15 17:48pm    
"No use of that libraries" is not informative. Let someone advise you one more, and you may also say "no use", so how would like to help you?
—SA

OK. You say you don't want to use external libraries? Well then, have fun writing your own library to parse and render a PDF file. You might want to look at the source for SumatraPDF[^] to get an idea of the amount of work you're in for.

Personally, I wouldn't waste 6 months of my life writing a PDF library when there are a ton of them that already exist and do that job for me.
 
Share this answer
 
Hello,

You can use WebView control in Android.
If you declare it in your Activity you can use Google Docs helper inside it.

YourWebViewControl.loadUrl("https://docs.google.com/gview?embedded=true&url=" + yourUrl);

Just simply add this line before url address:

"https://docs.google.com/gview?embedded=true&url="

It can also open word files, excel, etc.

Hope it will help. Let me know.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900