File Editing Question

Hello!

I am needing some guidance on the steps used to complete the following:

Open each pdf inside a folder
edit the pdf
save the pdf

I need to repeat these steps for about 100 pdf’s. Thanks for any help!

@Skyler_Blu

For each file in folder can be used to loop theough each file in folder

Can you please tell what kind of edits you want to perform?

Cheers

Step 1: Use for each file in a folder with pdf filter
Step 2: You can use the PDF activities. Which you need to get from manage packages then

You can use the “Read PDF Text” activity to read the text from the PDF.

@AJ_Ask

Can you point us where the write pdf text and save pdf activities are present?

Cheers

Sorry my bad. I was thinking about word then converting word to PDF. Write & Save is not there in pdf activities.

I need to write on each pdf, so I need it to open, write and then close the pdf.

I have a for each file in folder but I’m not sure how to open the file individually to write on them.

@Skyler_Blu

You dont have an activity to edit or write on pdf

One way you can try is inside for eqch file in folder use ui activities and open each file using acrobat and edit and try to write and save

Currentfile.fullname will give the location to open…

You can pass the file location and acrobat.exe location to open application/browser and file will be opened

Cheers

Thank you,

would you be able to share an example sequence?

@Skyler_Blu

this is how it looks

cheers

Thank you so much!! I will let you know if this solution works.

1 Like

Hi @Skyler_Blu

Try

Directory.GetFiles(“Your Directory”, “*.csv”,SearchOption.AllDirectories)

Or

image

Regards,

Prasanth Kumar Manivannan

BattleBots!!

1 Like

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