Dansoftowner / PDFViewerFX

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

Localization, FXML and customize via CSS #5

Closed storkeu closed 3 years ago

storkeu commented 3 years ago

Cool tool, but not rendering all pdf's. Are there plans to improve performance? Thanks

Dansoftowner commented 3 years ago

Hi!

Thanks for opening this issue!

I made a little performance improvement in v0.7, hopefully that makes it smoother.

PDFViewerFX is based on the pdf.js javascript library, so a lot of things are depend on that.

.scroll-bar:horizontal .thumb, .scroll-bar:vertical .thumb { -fx-background-color: #9d9b9b; -fx-background-radius: 0em; }

.scroll-bar .corner { -fx-background-color: #dbdbdb; -fx-disabled: true; }

But again, you can use `executeScript` for styling specific elements, for example:
```java
displayer.executeScript("document.getElementById('secondaryToolbarToggle').style.backgroundColor = 'blue';")

Read more about this here.

I hope this was helpful! Best regards