Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 613 Bytes

methods.md

File metadata and controls

39 lines (29 loc) · 613 Bytes

Methods

reload

Reload page's render task, useful to update some props, for example, the parent width when fit-parent is used

<script setup>
import { ref } from 'vue'

const VPDF = ref({})
function someEvent() {
  VPDF.value.reload()
}
</script>

<template>
  <VuePDF ref="VPDF" :pdf="pdf" />
</template>

cancel

Cancel the render task if the page is currently rendering.

<script setup>
import { ref } from 'vue'

const VPDF = ref({})
function someEvent() {
  VPDF.value.cancel()
}
</script>

<template>
  <VuePDF ref="VPDF" :pdf="pdf" />
</template>