Error Saving Word Document to PDF

Hello everyone,

I’m trying to save a word document as PDF using Save Document as PDF activity.
However, I keep getting RuntimeExcutionError: illegal characters in path.

I am using a normal path such as “C:\Users\Desktop\folder_name\file_name.pdf”.

What might be the issue here? I tried multiple paths with no luck.

@Nora_Almulla

I beleive you are pasing extra double quotes…please remove and try it.

Cheers

1 Like

@Anil_G Thank you so much, it worked. However, I have another question, how can I use a dynamic path? such as the following: "Folder_Name" + Variable_Name + “\File_Name.pdf”. I tried this and it didn’t work as it throws the same error :frowning:

@Nora_Almulla

Use path.Combine(var1,var2,var3)

This will combine the path…and use a log message to check if you have given it properly

Cheers

1 Like

Thank you so much @Anil_G, it worked :partying_face:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.