在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/