Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.
This repository was 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

@stephansann

Description

@stephansann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions