2012-06-26 31 views
0

如何使用sencha在ipad中加載pdf文件?如何使用sencha在ipad中加載pdf文件?

我曾嘗試以下方法:

html:'<div id="scroller" style="width:99%;overflow:scroll;">' + 
      '<img style="width:100%;overflow:scroll;"' + 
       'src="resources/pdfFiles/help.pdf">' + 
       '</img></div>' 

html:'<div id="scroller" style="width:99%;overflow:scroll;">' + 
      '<iframe style="width:100%;overflow:scroll;"' + 
       'src="resources/pdfFiles/help.pdf">' + 
       '</iframe></div>' 

html:'<div style="height:99%;width:99%;overflow:scroll;">' + 
     '<embed type="application/pdf" width="100%" height="100%" src="resources/pdfFiles/help.pdf" /></div>' 

html:'<object data="resources/pdfFiles/help.pdf" TYPE="application/x-pdf" width="100%" height="100%" </object>' 

iframe在Chrome瀏覽器中正常工作並打開pdf。但在iPad中,它打開了空白。 img標籤在ipad中只打開pdf的第一頁。如何在按鈕上點擊ipad加載整個pdf?任何幫助讚賞。

回答