0
我正在使用java swt浏览器进行java单页应用程序。在浏览器中,网页成功显示PDF,但在swt浏览器中PDF不能正确显示。
我正在使用<object/>
标记来显示PDF。PDF未在java swt浏览器中显示
$(document).on('click', 'input[type=button]', function(){
var datas = '<object data="files/Documents/'+$(this).attr('class')+'#page=1&zoom=130" type="application/pdf" width="100%" height="100%"></object>';
$('#custom-size-dialogBox').dialogBox({
width: screen.width-100,
height: screen.height-100,
hasMask: true,
title: 'View Details',
hasClose: true,
content: datas
});
});