Directory

← Back

HTMLtoCANVAS

Makes Screenshot. Html2Canvas lib for vaadin 14+

Author

Rating

Popularity

100+

Makes Screenshot of element and returns img.src. Realization of Html2Canvas.js lib for vaadin 14+

Sample code

        Button button = new Button("Click here");
        button.addClickListener(l -> {
            CompletableFuture<String> completableFuture = HTML2CANVAS.takeScreenShot(button.getElement());
            completableFuture.thenRun(() -> {
                try {
                    Image image = new Image(completableFuture.get(), "adfs");
                    add(image);
                } catch (InterruptedException | ExecutionException ignored) {
                }
            });
        });
        add(button);
        Button button = new Button("Click here to screenshot");
        button.addClickListener(l -> {
            CompletableFuture<String> completableFuture = Screenshoter.screenshot();
            completableFuture.whenComplete((s, throwable) -> {
                Image image = new Image(s, "adfs");
                add(image);
            });
        });

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Makes Screenshot of element or whole page. Realization of Html2Canvas.js lib and screen capture api.

Released
2024-10-21
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 23+
Vaadin 22 in 1.0.0
Vaadin 21 in 1.0.0
Vaadin 20 in 1.0.0
Vaadin 19 in 1.0.0
Vaadin 18 in 1.0.0
Vaadin 17 in 1.0.0
Vaadin 16 in 1.0.0
Vaadin 15 in 1.0.0
Vaadin 14 in 1.0.0
Browser
Browser Independent

HTMLtoCANVAS - Vaadin Add-on Directory

Makes Screenshot. Html2Canvas lib for vaadin 14+ HTMLtoCANVAS - Vaadin Add-on Directory
Makes Screenshot of element and returns img.src. Realization of Html2Canvas.js lib for vaadin 14+
View on GitHub

HTMLtoCANVAS version 1.0.0
Initial commit

HTMLtoCANVAS version 1.0.1

HTMLtoCANVAS version 1.0.2
Makes Screenshot of element and returns img.src. Realization of Html2Canvas.js lib for vaadin 23+

HTMLtoCANVAS version 1.0.4
Makes Screenshot of element and returns img.src. Realization of Html2Canvas.js lib for vaadin 14+

HTMLtoCANVAS version 2.0.4
Makes Screenshot of element or whole page. Realization of Html2Canvas.js lib and screen capture api.

HTMLtoCANVAS version 1.0.5
Makes Screenshot of element or whole page. Realization of Html2Canvas.js lib and screen capture api.

HTMLtoCANVAS version 2.0.5
Makes Screenshot of element or whole page. Realization of Html2Canvas.js lib and screen capture api.

Online