randolphtellis / vue3-pdfjs

PDF Reader for Vue 3 using Mozilla's PDF.js
MIT License
92 stars 21 forks source link

还在维护吗?发票pdf缺少文字 #17

Open tsinghua-lau opened 2 years ago

tsinghua-lau commented 2 years ago

image

报错 缺少字体

Warning: loadFont - translateFont failed: "r: The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.".

vue3-pdf-embed.js?8066:1 Warning: Error during font loading: The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.

a41eb984-0e8d-4e85-9dd5-baeb18ef3fff:1 Warning: loadFont - translateFont failed: "r: The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.".

vue3-pdf-embed.js?8066:1 Warning: Error during font loading: The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.

a41eb984-0e8d-4e85-9dd5-baeb18ef3fff:1 Warning: loadFont - translateFont failed: "r: The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.".

vue3-pdf-embed.js?8066:1 Warning: Error during font loading: The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.

yuanbo1998 commented 2 years ago

同学,找到解决方法了嘛?我也是在做发票预览的时候出现这个问题,搜索出现 import CMapReaderFactory from 'vue-pdf/src/CMapReaderFactory.js' this.pdfUrl = pdf.createLoadingTask({ url: data.url, CMapReaderFactory }),但是我测试了下有问题,需要下载vue-pdf

wangliangxin commented 7 months ago

方便给个完整代码看看吗?我按照你这样,并没有解决 @yuanbo1998

yuanbo1998 commented 7 months ago

后续暂时没有使用了

? @.***

 

------------------ 原始邮件 ------------------ 发件人: "randolphtellis/vue3-pdfjs" @.>; 发送时间: 2024年4月2日(星期二) 晚上11:14 @.>; @.**@.>; 主题: Re: [randolphtellis/vue3-pdfjs] 还在维护吗?发票pdf缺少文字 (Issue #17)

方便给个完整代码看看吗?我按照你这样,并没有解决 @yuanbo1998

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>