|
|
|
@ -7,7 +7,7 @@ |
|
|
|
</header-nav> |
|
|
|
</div> |
|
|
|
<div class="m-pdf"> |
|
|
|
<div id="pdf-content"></div> |
|
|
|
<div id="pdf-content" style="width: 98%"></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script > |
|
|
|
@ -33,9 +33,7 @@ export default { |
|
|
|
// pdfh5 = new Pdfh5(selector, options) goto初始到第几页,logo设置每一页pdf上的水印 |
|
|
|
this.pdfh5 = new Pdfh5("#pdf-content", { |
|
|
|
pdfurl: this.pdfUrl, |
|
|
|
goto: 1, |
|
|
|
cMapUrl: 'https://unpkg.com/pdfjs-dist@3.8.162/cmaps/', |
|
|
|
lazy: false |
|
|
|
goto: 1 |
|
|
|
// 设置每一页pdf上的水印 |
|
|
|
|
|
|
|
}); |
|
|
|
@ -58,12 +56,7 @@ export default { |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
.m-pdf{ |
|
|
|
//height: 100%; |
|
|
|
position: fixed; |
|
|
|
top: 0; |
|
|
|
bottom: 0; |
|
|
|
right: 0; |
|
|
|
left: 0; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
|