Dansoftowner / PDFViewerFX

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

Defect: Unexpected behavior when displaying PDF that contains Images #10

Open RayanLMoon opened 3 years ago

RayanLMoon commented 3 years ago

There is an unexpected behavior when displaying a PDF file or stream that contains images. The displayer often duplicate or miss place the pdf images with others.

Check the attached GIF for more clarification. defect

Dansoftowner commented 3 years ago

Hi!

I updated the PDF.js version in v0.7, hopefully that solves the problem.

Best regards

RayanLMoon commented 3 years ago

Hi, Thanks for the update!

Unfortunately the problem still exists.

I found out that this defect only happens if there is more than one image per PDF page.

Hopefully you would figure out what's causing this behavior.

Best regards.

Dansoftowner commented 3 years ago

Hi,

What version of java/javafx you use? Maybe updating your javaFX version solves the problem.

RayanLMoon commented 3 years ago

Hi,

I'm using Java 8, I gave it a try using oracle jdk and Zulu open jdk and both have the same issue.

To make sure, I cloned your repo and changed the Demo loadPdf url to :

https://www.sparkasse-lev.de/content/dam/myif/sk-leverkusen/work/dokumente/SKLev/ruecksetzung_ueber_if-mobile.pdf

and I'm getting the same behavior.

To produce this defect, use the above url and after running the application try to zoom in and out, and the miss behavior will appear.

I have the feeling that this is a javascript issue while loading/converting the pdf file to byte[].

RayanLMoon commented 3 years ago

Hi @Dansoftowner

Any further progress with this defect?

RayanLMoon commented 3 years ago

Hi @Dansoftowner

Any further progress with this defect?