version 1.7.4 is not showing pdf
myomyintaung1411 opened this issue · comments
Warning: loadFont - translateFont failed: "UnknownErrorException: CMapReaderFactory not initialized, see the useWorkerFetch
parameter.".
util.js:380 Warning: Error during font loading: CMapReaderFactory not initialized, see the useWorkerFetch
parameter.
my full code
<script setup> import pdfFile from '@/assets/yuanjing.pdf' import { VuePDF, usePDF } from '@tato30/vue-pdf' const { pdf, pages, info } = usePDF(pdfFile) </script>
Try to disable useWorkerFetch parameter in usePDF
const { pdf, pages, info } = usePDF({
url: pdfFile,
useWorkerFetch: false
})