Dansoftowner / PDFViewerFX

A pdf viewer library for your javaFX application
Apache License 2.0
66 stars 24 forks source link

PDF displayed on Windows, but not on Mac or Linux #16

Closed stephansann closed 3 years ago

stephansann commented 3 years ago

Hi @Dansoftowner

I am trying to open the same PDF on Linux, Mac and Windows. On Windows the PDF will be displayed, on Mac or Linux not:

Screen Shot 2021-04-18 at 12 45 44

Attached the PDF file in question.

Any ideas?

Thanks and best regards Stephan

wingtsunwelt_40_2016.pdf

Dansoftowner commented 3 years ago

Hi @stephansann ,

thanks for reporting this issue!

Is this happening to all PDFs or just for this specific one?

stephansann commented 3 years ago

Can't speak for all PDFs, only with this one it caught my eye. Most PDFs surely are okay (otherwise I couldn't use the lib 😉).

The difference with this file compared to the most PDFs I am working with is that it is rather big (100 pages). Anyhow memory shouldn't be an issue on my Mac (24 GB).

Dansoftowner commented 3 years ago

Checkout version 0.8. I've updated the default pdf.js version.

Also, you can now switch back to a previous pdf.js version:

PDFDisplayer displayer = new PDFDisplayer(PdfJSVersion._2_2_228);

If the problem is still present, tell me!:)

stephansann commented 3 years ago

Hi @Dansoftowner Great job (again) 👏🏻

It now looks good on Mac and on Linux:

Screen Shot 2021-04-18 at 19 16 55

Thanks and best regards Stephan