vue-pdf-app icon indicating copy to clipboard operation
vue-pdf-app copied to clipboard

prop pageScale doesn't work

Open w5400013936 opened this issue 3 years ago • 3 comments

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:

  • Web browser and it`s version: app runs on the phone
  • Operating system and it`s version: android, ios
  • vue-pdf-app version: 2.1.0

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

w5400013936 avatar Aug 12 '21 05:08 w5400013936

Does it work right on a computer?

sandanat avatar Sep 01 '21 20:09 sandanat

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

ryuya-matsunawa avatar Nov 25 '21 08:11 ryuya-matsunawa

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

fanbinghuadev avatar Apr 22 '24 13:04 fanbinghuadev