PDA

View Full Version : PDF Panel is not getting opened. Here's the code.



fanatsy.craze
8 May 2014, 10:40 PM
requires:[ "Ext.ux.panel.PDF" ],config:{autoLoad:true, store:'NewsLettersStoreId',itemTpl:'https://www.sencha.com/forum/resources/css/pdficon_m_android.png{names}', listeners:[{ element:'element', delegate:'img', event:'tap', fn:function(event){ alert("loading..."); 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}); } }] }

scottmartin
9 May 2014, 5:32 AM
Your code is hard to read and I am not sure where pdfpanel is coming from. Here is a quick example of a PDF in a panel:
http://ext4all.com/post/extjs-4-show-pdf-in-a-panel.html