我需要使用appcelerator将PDF显示到应用android中

问题描述 投票:0回答:1

我正在使用appcelerator开发一个应用程序。我需要在此应用程序内显示网址PDF,但android webview不显示pdf。我尝试将此pdf格式输入googlehttps://docs.google.com/viewer?url=http://xxx.pdf&embedded=true但是很不稳定,在白屏中打开我的webview android。

有人有使用appcelerator将pdf打开到android应用的解决方案吗?

谢谢。

pdf webview titanium appcelerator
1个回答
0
投票

Android Webview不会自动加载PDF文件。您必须使用pdf.js并进行渲染,或者使用以下模块:https://github.com/SquirrelMobile/pdfview,它将创建自定义视图以显示PDF文件

© www.soinside.com 2019 - 2024. All rights reserved.