Skip to main content
1-Visitor
Jul 23, 2015 9:58 AM UTC
Question

Is there any way to generate a pdf of Mashup by one click (Widget)/service in the Mashup?

Is there any way to generate a pdf of Mashup by one click (Widget)/service in the Mashup?

Have a Mashup with different type of data selection which is giving me final Report in Mashup which I want to send/share with someone in pdf format. Is there any way to do so? Thank you!

    25 replies

    1-Visitor
    Jul 23, 2015 1:21 PM UTC

    You could use the File/Print option in your browser and output to pdf format.

    Translate
    1-Visitor
    Jul 23, 2015 1:29 PM UTC

    Sorry. Looking for Thingworx service/widget to complete this task.

    If it is possible. Could you tell any service/widget which reads the selection by click? If list is being used for selection purpose.

    Thank you!

    Translate
    1-Visitor
    Jul 23, 2015 1:41 PM UTC

    Looking for same functionality as we are having an option (As ACTIONS) View as PDF in the left-middle of Is there any way to generate a pdf of Mashup by one click (Widget)/service in the Mashup? this page. Thank you!

    Translate
    1-Visitor
    Jul 23, 2015 1:46 PM UTC

    Looking for same functionality as we are having an option (As ACTIONS) View as PDF in the left-middle of Is there any way to generate a pdf of Mashup by one click (Widget)/service in the Mashup? this page. Can we get it in Thingworx as Widget/service? Else how we can create this functionality for Thingworx Mashup (Which is having gauge, LED, Table, Map and etc.) after selecting the item/s from list?

    Thank you!

    Translate
    14-Alexandrite
    Aug 7, 2015 11:56 AM UTC

    Hi Rahul,

    You can have look at this thread,

    PrintButton Extension project

    Hyunkoo has created this widget which can ease some of your work. Hope this helps!

    Translate
    1-Visitor
    Aug 10, 2015 9:41 AM UTC

    Thanks Ketan for informing me. Already created a widget for the same.

    Translate
    14-Alexandrite
    Aug 10, 2015 9:53 AM UTC

    If possible please share it. It might help others 

    Translate
    1-Visitor
    May 3, 2017 8:12 AM UTC

    Hi,

    I have a problem with the new version of March 2017 of the widget PDFExtension.

    when I execute the service CreatePDF from the Composer, there's an error:

    Unable to Invoke Service CreatePDF on PDFExport : Could not launch browser. Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43' System info: host: 'ubuntu', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-21-generic', java.version: '1.8.0_92' Driver info: driver.version: JBrowserDriver

     

    The error in Logs Application:

    [context: com.thingworx.webservices.context.HttpExecutionContext@75ac754e][message: Unable to Invoke Service CreatePDF on PDFExport : Could not launch browser.

     

    The error in Tomcat (catalina.out):

    java.lang.NoClassDefFoundError: com/sun/webkit/network/CookieManager

          at com.machinepublishers.jbrowserdriver.JBrowserDriverServer.main(JBrowserDriverServer.java:74)

    Caused by: java.lang.ClassNotFoundException: com.sun.webkit.network.CookieManager

          at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

          ... 1 more

     

    Based on this issue (Linux: can not start the driver · Issue #186 · MachinePublishers/jBrowserDriver · GitHub), I tried to install the package "openjfx" but it doesn't resolve the problem.


    I tried to replace some .jar in the widget with new version ones but it doesn't work.

    Did you have this error ?

    Translate
    1-Visitor
    Jan 9, 2018 4:47 PM UTC

    Quang-Dung Ngo escribió:

    Hi,

    I have a problem with the new version of March 2017 of the widget PDFExtension.

    when I execute the service CreatePDF from the Composer, there's an error:

    Unable to Invoke Service CreatePDF on PDFExport : Could not launch browser. Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43' System info: host: 'ubuntu', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-21-generic', java.version: '1.8.0_92' Driver info: driver.version: JBrowserDriver

    The error in Logs Application:

    [context: com.thingworx.webservices.context.HttpExecutionContext@75ac754e][message: Unable to Invoke Service CreatePDF on PDFExport : Could not launch browser.

    The error in Tomcat (catalina.out):

    java.lang.NoClassDefFoundError: com/sun/webkit/network/CookieManager

          at com.machinepublishers.jbrowserdriver.JBrowserDriverServer.main(JBrowserDriverServer.java:74)

    Caused by: java.lang.ClassNotFoundException: com.sun.webkit.network.CookieManager

          at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

          ... 1 more

    Based on this issue (Linux: can not start the driver · Issue #186 · MachinePublishers/jBrowserDriver · GitHub), I tried to install the package "openjfx" but it doesn't resolve the problem.


    I tried to replace some .jar in the widget with new version ones but it doesn't work.

    Did you have this error ?

    I have the same issue. Did you already solved it ?

    Translate
    1-Visitor
    Jan 10, 2018 8:00 AM UTC

    Hello, I reinstalled Java jdk and it's solved

    Translate