Highlight the differences in both PDF


Let say I want to compare 2 PDF files. All i can do is return using if else statement to check whether both file is same or have differences and return the result.
Is there a way to highlight those differences in both PDF when so that we can know which line in PDF are different?
Is better if you guys have sample workflow as example.

Thanks in advances.

I don’t know, how to compare two PDF file…
Convert your PDF File into Text File and compare word by word or Line by Line in the text file…
if suppose, the word/text will be different from the another text file…
Store the different text in the list, After that use Highlight Activity with the help of the List and highlight the text/word

I think, It will work…

@pathrudu @Niket_Ghai @Poovarasan2

Thanks for the solution. I am new to UiPath in my workflow I am comparing two pdf’s successfully. But, I want to know how can I write the differences into text or output panel.

hi @Bhaskar_Mukka

i’m also searching for the same solution…
can you tell ,how you are comparing two pdf s succesfully

Hi @Mr.StarLord_AO,

Sorry for the late replay. Please find the details below,

  • You can use “Read PDF” activity to extract data into a string for both PDF’s
  • Use string operation (index, equals, split etc) to compare the values.

Hope this will work for you :slight_smile: