Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用ExtJS弹出pdf查看器_Extjs - Fatal编程技术网

使用ExtJS弹出pdf查看器

使用ExtJS弹出pdf查看器,extjs,Extjs,我想用ExtJS创建一个弹出式pdf查看器。 我尝试过一些面板示例,如: Ext.onReady(function() { Ext.widget('panel', { title: 'My PDF', width: 600, height: 400, items: { xtype: 'component', autoEl: { tag: 'ifra

我想用ExtJS创建一个弹出式pdf查看器。 我尝试过一些面板示例,如:

Ext.onReady(function() {
   Ext.widget('panel', {
        title: 'My PDF',
        width: 600,
        height: 400,
        items: {
            xtype: 'component',
            autoEl: {
                tag: 'iframe',
                style: 'height: 100%; width: 100%; border: none',
                src: './test.pdf'
            }
        },
        renderTo: 'selection'
    });
});
我想要一些类似的想法

我的需求和这个需求的不同之处在于,我希望屏幕右上角有一个关闭和打印按钮。我不需要分页

有线索吗? 提前感谢:)

试试这个

var showss = Ext.create('Ext.window.Window' {
                            title: 'PDF Content',
                            width: 400,
                            height: 600,
                            modal   : true,
                            closeAction: 'hide',
                            items: [{ 
                                     xtype: 'component',
                                     html : '<iframe src="./test.pdf" width="100%" height="100%"></iframe>',
                                  }]
                        });
  showss.show();
var showss=Ext.create('Ext.window.window'{
标题:“PDF内容”,
宽度:400,
身高:600,
莫代尔:是的,
closeAction:'隐藏',
项目:[{
xtype:'组件',
html:“”,
}]
});
showss.show();

谢谢您的回答,但这个示例与我在示例(链接)中发布的示例不同。还有其他线索吗?