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!
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?
As Aanjan already replied, we have in the marketplace the PDF Extension (I'm its creator).
It is doing all the rendering and pdf generation server-side, as I didn't want to rely on print styles that my be overridden client side.
It should be pretty simple to be used and you can simulate different resolutions or portrait or layout aspect.
You can wrap a call to that in a service which you can trigger from a Button in the mashup.
Please tell me if it works for you:)
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):
Caused by: java.lang.ClassNotFoundException: com.sun.webkit.network.CookieManager
... 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 ?