SampleViewer - Patr1ick/fxPDF GitHub Wiki

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