它不起作用,有什么问题吗?
var win = new Ext.Window({
title: 'PDF Content',
width: 400,
height: 600,
maximizable: true,
layout: 'fit',
plain: true,
items: { // Let's put an empty grid in just to illustrate fit layout
xtype: 'component',
autoEl: {
tag: "iframe",
src: "../../../resources/august2013.pdf"
}
}
//items : [ {
// html: '<object width="100%" height="100%" data="../../../resources/august2013.pdf"></object>'
//} ]
})
win.show();
我在下面插入 Deamon
的代码后得到的 View !
最佳答案
试试这个:
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();
关于pdf - 如何在 ext.window 中显示 pdf 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18379290/