Conversion from Word to PDF

Hi is there any way to convert from Word to PDF.
I have files in a folder and want to convert into PDF save it, can you please guide me.
@lakshman @Palaniyappan @indra Please guide buddy :slight_smile:

1 Like

@balkishan

You can use Export To PDF Activity to do this.

https://activities.uipath.com/docs/word-export-to-pdf

1 Like

@balkishan

Read one by one file from folder and pass it to Word Application Scope Activity and inside it use Export to PDF Activity to convert word document to PDF file.

2 Likes

@lakshman I don’t have this activity in the studio, tried to download but not available bro
image

1 Like

@balkishan

Just install UIpath.Word.Activities package.

1 Like

@balkishan

Have you installed that package ?

Did you find Export to PDF Activity or not ?

1 Like

Yes bro, installed that package and got the activity. I am doing bro as you suggested me.

1 Like

@balkishan

Ok. If you face any issues then let me know.

Here, pass item to Word Application Scope and Export to PDF activities.

1 Like

@lakshman if you see my file name in word format I want to save the same file name pdf format.
like Ahmad Hanini.pdf

@balkishan

Do one thing. Read file name first.

  1. In Assign, String filename = Path.GetFileNameWithoutExtension(item)

  2. Export to PDF, pass like this “folderPath”+filename+".pdf"

5 Likes

Thanks @lakshman It really worked!! :slight_smile:

2 Likes

Sorry buddy…
was out with some work.fine…happy got resolved… @balkishan

1 Like

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