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
});
});