这篇文章主要介绍了vue element-ui读取pdf文件的方法,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
本文实例为大家分享了vue element-ui 读取pdf文件,供大家参考,具体内容如下
添加依赖
npm install pdfjs-dist --save
pdf.vue
<div class="app-container"> <div class="center"> <div class="contor"> 上一页下一页<span>Page: <span /> / <span /></span>关闭</div></div></div> .cpdf { top: 0; left: 0; background-color: rgba(0, 0, 0, .5); width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; } .center { text-align: center; height: 100%; overflow: auto; padding-top: 20px; } .contor { margin-bottom: 10px; } .button-group { float: right; margin-top: 10px; margin-bottom: 10px; }
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持gaodaima搞代码网。
以上就是vue element-ui读取pdf文件的方法的详细内容,更多请关注gaodaima搞代码网其本文来源gao@!dai!ma.com搞$$代^@码网*它相关文章!