我正在使用QoppaPdf库非常好。 但网上帮助不大。 我的问题是,在Eclipse和模拟器上,我的pdf打开了whitout问题,但当我在我的设备上传输.apk并尝试时,我的pdf打开很奇怪。 我把两张图片,一张带有模拟器,另一张带有设备,以便更好地理解我的问题。
我的模拟器的屏幕截图 image on emulator
我的设备的屏幕截图 image my device
所以我不明白为什么我的应用程序会这样做..
感谢您的回答
答案 0 :(得分:3)
我找到了如何解决我的问题!
经过多次搜索网络和doc android,
我只需在AndroidManifest.xml中添加:android:hardwareAccelerated="false"
。
你可以把它放在。或
我希望我帮助其他人。 再见!
答案 1 :(得分:1)
关于gvsharma关于ExceptionInitializationError的问题,答案可以在另一个Stackoverflow帖子中找到:Qoppa PDF Android NullPointer。
在调用qPDF Toolkit之前,您需要添加以下代码:
//this static allows the sdk to access font assets,
//it must be set prior to utilizing libraries
StandardFontTF.mAssetMgr = getAssets();