Skip to main content
13-Aquamarine
May 6, 2023
Question

PDF Download using ThingWorx

  • May 6, 2023
  • 1 reply
  • 5174 views

hi expert ,

i can not solve problem , please  how to solve problem 

var params = {
FileRepository:"filetest/" /* THINGNAME */,
Rotated90Deg: false /* BOOLEAN */,
AppKey: "8204jef3-7l1f-45b7-a2cd-jf55547e7c0e"/* STRING */,
ServerAddress:"http://delbi3dev.analytics.com:8080/Thingworx/Runtime/index.html?mashup=attachment3" /* STRING */,
OutputFileName: "FileName.pdf" /* STRING */,
Resolution:"1240*1775"/* STRING */
};
Resources["PDFExport"].CreatePDF(params);

 

 Error executing service pdfRenderingcreate. Message :: Could not launch browser. Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43' System info: host: 'PTC-DEV-SERV-AWS', ip: '172.16.0.59', os.name: 'Windows Server 2019', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.14' Driver info: driver.version: JBrowserDriver - See Script Error Log for more details.

 

1 reply

24-Ruby III
May 7, 2023
13-Aquamarine
May 8, 2023

Hi @VladimirN 

 

your share link ,all ready share me , this is unsolvable post , please help me.

14-Alexandrite
May 8, 2023

jBrowserDriver has issues with OpenJDK 11. So I never managed to get the pdf-extensio running with Thingworx 9.x and OpenJDK 11.

I now created another similar extension, that uses playwright web test library instead:

atondorf/twx.pdf.extension (github.com)

Any suggestions and optimisations are welcome ...