Skip to main content
1-Visitor
July 23, 2015
Question

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

  • July 23, 2015
  • 4 replies
  • 12180 views

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!

    4 replies

    1-Visitor
    July 23, 2015

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

    1-Visitor
    July 23, 2015

    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!

    1-Visitor
    July 23, 2015

    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!

    1-Visitor
    July 23, 2015

    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!

    14-Alexandrite
    August 7, 2015

    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!

    1-Visitor
    August 10, 2015

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

    14-Alexandrite
    August 10, 2015

    If possible please share it. It might help others 

    1-Visitor
    May 3, 2017

    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 ?

    1-Visitor
    January 9, 2018

    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 ?

    1-Visitor
    January 10, 2018

    Hello, I reinstalled Java jdk and it's solved