vue-pdf-app
vue-pdf-app copied to clipboard
Cannot load two pdf on same page
Hi I try to use this to render my pdf. On first page it's works beautifully, but when I try to add more pdf viewer, the second viewer not working, only show blank.
Hi! Unfortunately it is impossible to use two instances of pdf viewer. The package repeats the structure of Mozilla's pdf viewer and internally it uses elements ids to implement functionality. That means that only the first pdf viewer can be operable
@sirmadboy , do you have any other questions? Otherwise close the issue, please.
This really should be fixed.. All you would need to do is allow someone to add a prefix to all ids.
@sandanat I thought it's possible to have two viewers on the same page by generating custom unique ids for each component instance and sending them to this package like this :id-config="idConfig"
. While I thought this will fix the issue, it did not.
Do think there is a way to achieve this with the current build?
Hi! IdConfig
prop is used to build custom toolbar. Not for two viewers. It is impossible to use two viewers in current build. I will implement it this month
@sirmadboy I am down to help you implement this if you need another hand on deck :)
Do it!
I think you should add props named group then make it as prefix any event to separate each viewer
Can this library support two pdfs on the same page now?
Can this library support two pdfs on the same page now?
Any update on 2 instances? Is it in progress or anything? Trying to determine if i will use this package in a project, but this is a big issue for my requirements
It would be so nice if it could. Wouldnt take that much more work.
Any update on 2 instances? Is it in progress or anything? Trying to determine if i will use this package in a project, but this is a big issue for my requirements
Hi! Yes, I have just started working on it after a long break. Will be done at the beginning of the next month
Hello! that is great to hear m8! thanks!
Hi @sandanat , any updates on supporting multiple instances? I am using your app in my project and got stuck because of this limitation. I really appreciate it if you can add support to multiple instances.
Hi @sandanat one thumb up more here for supporting this feature as soon as possible 😄
Hi @sandanat, now supporting two same pdf?
since there is still no support for 2 pdf on page, here is the solution I used. Maybe it will be useful for someone