Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

SampleViewer

Patrick edited this page Oct 1, 2021 · 4 revisions

The SampleViewer is an example how to integrate all nodes into a project.

Usage

// You need a pdf to create a SampleViewer
PDF pdf = new PDF(new File(path));
SampleViewer sv = new SampleViewer(pdf);

AppearanceType

If you want to change the AppearanceType of the SampleViewer you need to call the method sv.setTheme(AppearanceType.DARK);.

DARK

Screenshot: tbd.

LIGHT

Screenshot: tbd.

CUSTOM

You will need to provide a path to your .css file via sv.setCustomPathCSS(path);

Screenshot

Dark Theme

Screenshot of the SampleViewer with the dark theme

Light Theme

Screenshot of the SampleViewer with the lighttheme

Clone this wiki locally