vue手机端项目,在使用vue-pdf的时候发现在ios上面vue-pdf加载对了页数但是没有展示任何文字,起初我以为时文字的问题
import CMapReaderFactory from "vue-pdf/src/CMapReaderFactory.js"; 利用这个试了还是不行。
我这里的加载是一次加载全部
<pdf
v-for="index in pageCount"
:src="url"
:key="index"
:page="index" />
let loadingTask = Pdf.createLoadingTask(url, CMapReaderFactory);
loadingTask.promise.then(pdf =>
{
this.url = loadingTask;
this.pageCount = pdf.numPages;
})
ios手机大概在最近出的两款中,系统应该是当前最新的