Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Add a way to set the PDFDisplayer's preferred width and height #20

Open
stephansann opened this issue Apr 22, 2021 · 0 comments
Open

Add a way to set the PDFDisplayer's preferred width and height #20

stephansann opened this issue Apr 22, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@stephansann
Copy link

Hi @Dansoftowner

There does not seem to be an "official" way to set the preferred width and height of the PDFDisplayer's pane.

What I do to get around it is:

WebView tmpWebView = (WebView)PDF_VIEWER.toNode();
                tmpWebView.setPrefWidth(aPrefWidth);
                tmpWebView.setPrefHeight(aPrefHeight);

Anyhow this is not really elegant, since it assumes the underlying node is a WebView (which could change).

It would be nice to have such functions on the PDFDisplayer's API.

Thanks and best regards
Stephan

@Dansoftowner Dansoftowner added the enhancement New feature or request label Apr 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants