我想在没有任何外部pdf应用程序的情况下打开应用程序内的pdf文件 [英] I want to open the pdf file inside the application without any external pdf application

查看:95
本文介绍了我想在没有任何外部pdf应用程序的情况下打开应用程序内的pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在没有任何外部pdf应用程序的情况下打开应用程序内的pdf文件。我曾尝试过MuPdf库,Pdfviewer和其他一些库。但没有使用那些库。请帮助我。在此先感谢

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

推荐答案

好的。你说你不想使用外部库?那么,有兴趣编写自己的库来解析和渲染PDF文件。您可能需要查看 SumatraPDF 的来源[ ^ ]了解您所从事的工作量。



就个人而言,我不会浪费6个月的时间来编写PDF库,因为有大量的PDF库已经存在并为我做这项工作。
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.


您好,



您可以在Android中使用WebView控件。

如果您在活动中声明它,您可以使用Google文件助手在里面。



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



只需在网址前添加此行:



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



它还可以打开word文件,excel等。



希望我会帮你的。请告诉我。
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.


这篇关于我想在没有任何外部pdf应用程序的情况下打开应用程序内的pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆