Skip to content

Possibility to check page #88

Answered by hrynko
m-briceno asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @m-briceno,

Please check the Examples section of README.md. There is an example of displaying the page number and the number of pages. In essence:

<template>
  <div>
    <template v-if="pageCount">
      <button :disabled="page <= 1" @click="page--">
        Previous
      </button>

      {{ page }} / {{ pageCount }}

      <button :disabled="page >= pageCount" @click="page++">
        Next
      </button>
    </template>

    <vue-pdf-embed
      :source="pdfSource"
      :page="page"
      @loaded="handleDocumentLoad"
    />
  </div>
</template>

<script>
import VuePdfEmbed from 'vue-pdf-embed'

export default {
  components: {
    VuePdfEmbed,
  },
  data() {
    return {
      page: 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by m-briceno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants