JPedal Support

The Ultimate Java PDF Library SDK

Download Trial Purchase

This topic contains 3 replies, has 2 voices, and was last updated by  Mark Stephens 1 month, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3603Reply

    Pooja Bhargavi

    Hi,

    We have been using OpenViewerFX for our project in our organization for the past two years now. Since it does not support the large pdfs and makes the tool hang, we are thinking of migrating to the new version of jpedal jar. When we tried the trial job to study its scalability, we noticed that the ViewerFX class which is used for JavaFX projects is missing. We wanted to try the trial version before actually making a purchase. Any thoughts on the same ?

    Thank you

    Best,
    Pooja Bhargavi

    #3604Reply

    Mark Stephens
    Keymaster

    You need to use Viewer (which is the combined version in the trial/commercial version) and uses both JavaFX and Swing to provide the best user experience.

    #3605Reply

    Pooja Bhargavi

    Hi,

    I am getting exception while using Viewer class.

    BorderPane borderPane = new BorderPane();
    Viewer viewer = new Viewer(borderPane, null);
    viewer.setupViewer();
    viewer.openDefaultFile(“/opt/resources/wootEditor/5.pdf”);
    Scene scene = new Scene(borderPane);

    This is the exception:

    Exception in Application start method
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
    Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$152(LauncherImpl.java:182)
    at com.sun.javafx.application.LauncherImpl$$Lambda$55/458209687.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NullPointerException
    at org.jpedal.examples.viewer.Viewer.setRootContainer(Viewer.java:400)
    at org.jpedal.examples.viewer.Viewer.<init>(Viewer.java:394)
    at Sample.start(Sample.java:19)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(LauncherImpl.java:863)
    at com.sun.javafx.application.LauncherImpl$$Lambda$58/962206449.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl$$Lambda$50/849460928.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
    at com.sun.javafx.application.PlatformImpl$$Lambda$53/304890784.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
    at com.sun.javafx.application.PlatformImpl$$Lambda$52/2027961269.run(Unknown Source)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)
    at com.sun.glass.ui.gtk.GtkApplication$$Lambda$41/1327763628.run(Unknown Source)
    … 1 more
    Exception running application Sample

    #3606Reply

    Mark Stephens
    Keymaster

    You will probably need to embed Viewer inside the JavaFX Swing container if you want it in a BorderPane.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: ViewerFX class missing in the trial version
Your information: