Closed r331 closed 2 months ago
You are using the same pdf
in both components
<SplitterPanel class="flex items-center justify-center">
<VuePDF :pdf="pdf" />
</SplitterPanel>
<SplitterPanel class="flex items-center justify-center">
<VuePDF :pdf="pdf" />
</SplitterPanel>
When using multiple usePDF
ensure to set a different name to each one
const { pdf: pdfOne } = usePDF(url1)
const { pdf: pdfTwo} = usePDF(url2)
Then, use them on the template
<SplitterPanel class="flex items-center justify-center">
<VuePDF :pdf="pdfOne" />
</SplitterPanel>
<SplitterPanel class="flex items-center justify-center">
<VuePDF :pdf="pdfTwo" />
</SplitterPanel>
I have a such code
I'm trying to load two different documents on one page, but I can see only one.
Here is my working code with vanilla pdfjs: