Closed serile closed 1 year ago
Thanks @stellR42 for this previewer. I tried several others - before settling on your package.
It seems that the @open and @pages-rendered are fired - only if the document is opened through the open icon of the previewer. It does not fire when :pdf is changed in the code (that is reactively).
I needed to change the page scaling to page-width every time, the user opens a document (via a reactive :pdf) which I thought can be accomplised by the @pages-rendered event. But it does not fire.
@stellR42 - can u pls look into this.
Thanks.
The open
event is specifically meant to trigger when the Open dialog is used. I will update it to add the pages-rendered
event when the file is loaded.
Thanks @stellR42 . Its working !
It works very well! Thanks @stellR42
@serile I also encountered this problem,Can you tell me how to solve it, thank you
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:
emits "open", "pages-rendered" are not work when I transfer pdf prop to vue3-pdf-app component initially. It's only works by opening to click the open button in the secondary toolbar.
there are some warning and error logs on the console.
My simple code is here
PdfViewer.vue
Thank you.