However, all it does is it opens the PDFTools GUI and selects ImagesToPDF tool. I found similar issue (https://forum.pdf-xchange.com/viewtopic.php?f=70&t=27252&p=105915&hilit=imagestopdf#p105915) was posted in the forum 5 years ago and was supposedly fixed in build 318.1.
Your code seems to be using V6 of the PDF Tools - which is quite old. Can you please update to the most recent one (your company's license should allow you to use the current V9) - and let us know if that helps?
unfortunately that won't help me. I have to use a version, which is approved and distributed company-wide (which is currently V6). If it doesn't work, I'll have to consider other options (MS Print to PDF or some server side conversion).
Your code seems to be using V6 of the PDF Tools - which is quite old. Can you please update to the most recent one (your company's license should allow you to use the current V9) - and let us know if that helps?
I do believe that V9 has also been approved in Siemens. Please contact your IT team and see if they can get you a more up to date version installed on your machine.