PDFViewerFX icon indicating copy to clipboard operation
PDFViewerFX copied to clipboard

PDFs not shown with second PDFViewer

Open stephansann opened this issue 3 years ago • 1 comments

Hi

First of all thanks for the good work with PDFViewer!

I included it in my own project: https://github.com/Document-Archiver/com.sophisticatedapps.archiving.document-archiver

With the DocumentArchiver you can archive different kind of Documents into an archive folder in a structured way.

Anyhow I found when I open a folder with multiple PDFs, the first PDF will be displayed fine. However when I switch to another PDF, it is often not displayed (often, but not always).

With every switch to another PDF-Document I create a new PDFDisplayer, so there should normally not be a problem!? Or would it be better to re-use an existing one?

What I see are warnings regarding a fake worker:

Warning: Setting up fake worker.
PDF 0691a0dceee7822731d570f7dbd6636b [1.4 Brother Scanner System Image Conversion / Brother Scanner System : MFC-L8690CDW series] (PDF.js: 2.6.347)
Warning: Setting up fake worker.

Any idea?

Thanks and best regards Stephan

stephansann avatar Mar 03 '21 07:03 stephansann

I have the same issue, this is not specific to you!

Reusing the same PDFDisplayer seems to fix the issue (?)

romainhedouin avatar Mar 09 '21 10:03 romainhedouin