sandanat / vue-pdf-app

VUEjs v2 PDF viewer based on Mozilla's PDFJS
MIT License
221 stars 100 forks source link

prop pageScale doesn't work #69

Open w5400013936 opened 3 years ago

w5400013936 commented 3 years ago

Please provide a working example with a bug (git repo, codesandbox, source code at least, etc). It takes a lot of time to set up environment to confirm an issue. So I will resolve issues faster.

Configuration:

Steps to reproduce the problem:

init vue-pdf-app with the prop "pageScale"

What is the expected behavior?

the page should be scaled

What went wrong?

prop pageScale doesn't work

Attachments (screenshots, links, etc)

image image

sandanat commented 3 years ago

Does it work right on a computer?

ryuya-matsunawa commented 2 years ago

@w5400013936 @sandanat page-scale does not work properly. But @pages-rendered work.

<VuePdfApp :pdf="pdf" theme="dark" @pages-rendered="pagesRendered" />

<script>
methods: {
  pagesRendered(vuePdf) {
    setTimeout(() => (pdfApp.pdfViewer.currentScaleValue = "0.2"))
  }
}
</script>
fanbinghuadev commented 5 months ago

AppOptions.set("disableHistory", true); Just turn off this feature