pdf,word,ppt在線預覽
先展示下效果
pdf跟ppt的預覽效果:
word的預覽效果
實現過程-只需一個iframe標籤即可
<iframe
src="http://view.xdocin.com/xdoc?_xdoc=http://image.cache.timepack.cn/nodejs.pdf"
style="width:100%,height:100vh;border:0">
</iframe>
先展示下效果
pdf跟ppt的預覽效果:
word的預覽效果
實現過程-只需一個iframe標籤即可
<iframe
src="http://view.xdocin.com/xdoc?_xdoc=http://image.cache.timepack.cn/nodejs.pdf"
style="width:100%,height:100vh;border:0">
</iframe>
Java word通過html設置樣式(Spire Docx) <dependencies> <!-- Apache POI dependency for Word --> <dependency>