page-number is can't use
duchanglong opened this issue · comments
<VuePdfApp :pdf="pdf" theme="dark" :page-number="5" />
If me set 'page-number' property.
Pdf loading after, it's also first page.
@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>