在Sencha Touch内部渲染PDF,需要使用这个插件,效果还可以:
Github Project
https://github.com/SunboX/st2_pdf_panel
用法:
Ext.application({
views : [
'Ext.ux.panel.PDF'
],
launch: function() {
Ext.Viewport.add({
xtype : 'pdfpanel',
fullscreen: true,
layout : 'fit',
src : 'http://cdn.mozilla.net/pdfjs/tracemonkey.pdf', // URL to the PDF - Same Domain or Server with CORS Support
});
}
});
Demo地址:http://SunboX.github.com/st2_pdf_pan.../SimpleViewer/
本文介绍了一个用于Sencha Touch的PDF插件,该插件允许在应用内直接渲染PDF文件。通过简单的配置,可以实现全屏显示及自定义布局等功能。
2428

被折叠的 条评论
为什么被折叠?



