FranckFreiburger / vue-pdf

vue.js pdf viewer
MIT License
2.23k stars 522 forks source link

vue-pdf Font SimSun is not available #186

Open mountainsofredleaves opened 5 years ago

mountainsofredleaves commented 5 years ago

google chrome console: Warning: Error during font loading: Font SimSun is not available I want to know how to generate SimSun.bcmap file through Windows`s .ttf or .ttc font file;

mountainsofredleaves commented 5 years ago

"vue": "^2.5.2", "vue-pdf": "^4.0.7",

adndyxu commented 5 years ago

how to use cmaps in vue-pdf ,do u have an example plz?

mountainsofredleaves commented 5 years ago

showPdf - 副本 (2).txt @adndyxu plz change txt to vue

adndyxu commented 5 years ago

showPdf - 副本 (2).txt @adndyxu plz change txt to vue

This works in vue-pdf can be like that ` import CMapReaderFactory from 'vue-pdf/src/CMapReaderFactory.js'

import pdf from 'vue-pdf'

// in render

pdf.createLoadingTask({ url: pdfUrl, CMapReaderFactory }) `

mountainsofredleaves commented 5 years ago

Thank you for your reply. Can you modify a sample for me in this file? The backend is passed to the front end is the Base64 data, not the url. In addition, the currently displayed PDF does not display the electronic signature (digital signature). The following solution has been found on the Internet. You need to modify the code of the underlying pdf.worker.js, and annotate the code of the attachment  util.annotationflag.hidden

mountainsofredleaves commented 5 years ago

image This screenshot file is the effect of opening the software. The following screenshot is the effect of opening Vue PDF in the browser image