|
buttons: [{
var mConfig = {
mediaType :'PDFFRAME', //this is the most reliable cross-browser
url : 'servlet/PdfServlet?invoice=2319283',
unsupportedText : 'Acrobat Viewer is not Installed',
resizable : true // < -- what's this?
autoSize : true
};
var p = new Ext.ux.MediaWindow({
id : 'PDFViewerWin',
bodyStyle : 'position:relative; padding:0px;',
width : 600,
height : 400,
mediaCfg : mConfig,
title : 'Title-1'
}).show();
|
本文介绍了一个使用Ext.ux库创建的PDF文档查看器实现方案。该查看器通过MediaWindow组件加载指定URL的PDF文件,并设置了相应的配置项以确保跨浏览器的兼容性和良好的用户体验。
921

被折叠的 条评论
为什么被折叠?



