How to compare pdf and word document and write it on new word file and create index file to find the difference of that 2 documents

How to compare pdf and word document and write it on new word file and create index file to find the difference

Hi @Melbin_Antu1 Once try with this activities

  1. Use ReadPdf activity
    FileName=“path\to\your\pdf\document.pdf”
    Result=“pdfText”
  2. Use ReadTextFile activity
    FilePath=“path\to\your\word\document.txt”
    Result=“wordText”
  3. Assign Activity
    Value=“{String.Compare(pdfText, wordText)}”
    To=“comparisonResult”
  4. If Condition=“comparisonResult <> 0”
    Then
    WriteTextFile :
    DisplayName=“Write Differences to Text File”
    FilePath=“path\to\differences.txt”
    Text=“Differences found: {wordText} vs {pdfText}”
    WriteTextFile :
    DisplayName=“Write Differences to New Word File”
    FilePath=“path\to\new\word\document.docx”
    Text=“Differences found: {wordText} vs {pdfText}”
    Else
    Log Message :
    Message=“No differences found.”
  5. Now, Use WriteTextFile
    DisplayName=“Create Index File”
    FilePath=“path\to\index\file.txt”
    Text=“Index of differences: {path\to\differences.txt}, {path\to\new\word\document.docx}”

i am getting below error