Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tsinghua-lau opened this issue Aug 28, 2022 · 3 comments
Open

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

tsinghua-lau opened this issue Aug 28, 2022 · 3 comments

Comments

@tsinghua-lau
Copy link

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
Copy link

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

@wangliangxin
Copy link

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

@yuanbo1998
Copy link

yuanbo1998 commented Apr 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants