在文档渲染成功的监听事件中调用页面跳转的接口:
var pageIndex = 6; //页面索引从0开始计数,第7页的索引为6
pdfui.eventEmitter.on(PDFViewCtrl.constants.ViewerEvents.renderFileSuccess, async (pdfDoc) => {
var pdfViewer = await pdfui.getPDFViewer();
var docRender = await pdfViewer.getPDFDocRender();
await docRender.goToPage(pageIndex);
})