ie中 js 操作pdf的介面 -- adobe
功能描述:頁面內嵌pdf檔案,對檔案進行放大縮小,前後翻頁,列印等操作。
介面:
PDF.AboutBox
PDF.goBackwardStack
PDF.goForwardStack
PDF.gotoFirstPage
PDF.gotoLastPage
PDF.gotoNextPage
PDF.gotoPreviousPage
PDF.LoadFile
PDF.Print
PDF.printAll
PDF.printAllFit
PDF.printPages
PDF.printPagesFit
PDF.printWithDialog
PDF.setCurrentPage
PDF.setLayoutMode
PDF.setNamedDest
PDF.setPageMode
PDF.setShowScrollbars
PDF.setShowToolbar
PDF.setView
PDF.setViewRect
PDF.setViewScroll
PDF.setZoom
PDF.setZoomScroll
html 內嵌pdf的程式碼
<embed id="pdf" width="100%" height="100%" src="filepath"/>
使用object標籤也可以,其中classid是該Activex控制元件在你作業系統註冊的id號。有關對該控制元件的操作,可以直接到它的官網去找找。
注意的一點是,如果系統安裝的是adobe 7,會報檔案不是以%PDF開頭的錯誤訊息。現在唯一不滿意的地方是無法取得頁數。