Word Application Scope - Export To PDF - Process freezes

@sumit.tyagi I never found the actual root cause of the problem - but I suspect it to be related to the antivirus running on the machine.

However I solved it by writing a code snippet in C# using the Invoke Code activity and Microsoft.Office.Interop.Word (you need to add it in Imports of your project). Basically the code just created a new Word session, opened the Word document and saved it as PDF. It seemed to be working without problems like experienced with the Word Application Scope and PDF activity.

Unfortunately I do not have access to the repo anymore so I cannot provide the exact code I used. But if you’re familiar with VBA you can also write the code snippet in VB.NET.

In either case you might need to change the .xaml file of your project to get the Microsoft.Office.Interop.Word to work by adding the AssemblyReference (not sure if it was ever fixed by UiPath). You can find more details here: