vue3-pdfjs icon indicating copy to clipboard operation
vue3-pdfjs copied to clipboard

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

Open tsinghua-lau opened this issue 2 years ago • 3 comments

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.

tsinghua-lau avatar Aug 28 '22 09:08 tsinghua-lau

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

yuanbo1998 avatar Nov 10 '22 07:11 yuanbo1998

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

wangliangxin avatar Apr 02 '24 15:04 wangliangxin

后续暂时没有使用了

? @.***

 

------------------ 原始邮件 ------------------ 发件人: "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: @.***>

yuanbo1998 avatar Apr 03 '24 02:04 yuanbo1998