Open duchanglong opened 3 years ago
@duchanglong page-number does not work properly. But @pages-rendered work.
<VuePdfApp :pdf="pdf" theme="dark" @pages-rendered="pagesRendered" />
<script>
methods: {
pagesRendered(vuePdf) {
setTimeout(() => (pdfApp.pdfViewer.currentPageNumber = "5"))
}
}
</script>
<VuePdfApp :pdf="pdf" theme="dark" :page-number="5" />
If me set 'page-number' property. Pdf loading after, it's also first page.