1、按照api文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/pdf-arkts-pdfview-component-V5
操作。
2、页面不显示log报错,报错信息为:
the requested module '@hms:officeservice.PdfView' does not provide an export name 'pdfViewManager' which imported by 'com.xxx/entry@viewpdf/ets/components/MainPage'
demo参考: