Ext.onReady(function () { Ext.create({ title: 'My PDF', xtype: 'panel', width: 600, height: 400, items: { xtype: 'box', autoEl: { tag: 'iframe', style: 'height: 100%; width: 100%', src: '/files/pdf-sample.pdf' } }, renderTo: 'output' }); });
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
IT KNOWLEDGE IS APPLIED KNOWLEDGE So Just Do It
var win = Ext.create('Ext.window.Window' { title: 'PDF Content', width: 400, height: 600, modal : true, closeAction: 'hide', items: [{ xtype: 'component', html : '<iframe src="../../../resources/august2013.pdf" width="100%" height="100%"></iframe>', }] }); win.show();
Login to post response