Skip to content
On this page

pdf analysis ​

uniapp pdf analysis beta ​

uniapp only supports network images, and will support more types in the future.

javascript
import printease from 'printease'
let webviews = new printease.webview.UniappWebview()
let pdf = new printease.pdfinfo.PdfInformation()
pdf.loadUniPdfFile('https://xxxxxxxx.cn/static/response.pdf', webviews)
    .then(res => {
        that.drawImageObj = pdf.getPdfText();
        that.imageArr = pdf.getPdfImage();
    })