Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page-number is can't use #88

Open
duchanglong opened this issue Nov 11, 2021 · 1 comment
Open

page-number is can't use #88

duchanglong opened this issue Nov 11, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@duchanglong
Copy link

<VuePdfApp :pdf="pdf" theme="dark" :page-number="5" />
If me set 'page-number' property.
Pdf loading after, it's also first page.

@duchanglong duchanglong added the bug Something isn't working label Nov 11, 2021
@ryuya-matsunawa
Copy link

ryuya-matsunawa commented Nov 25, 2021

@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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants