Forum Discussion

Afreen's avatar
Afreen
Occasional Contributor
21 hours ago

PDF comparision

i am trying to compare two pdf files and i can only use pdfminer, but the text extraction is not working same for both the files as the formatting and alignment is different and it will be in the same way and no way to make the format same.
I have already messed up my python file and cant generate a proper comparision of pdf
i am mainly trying to do comparison section wise
please give me apython code or ideas on how i can do it or the prompts

3 Replies

    • Afreen's avatar
      Afreen
      Occasional Contributor

      I had tried with the link pdf documentation bit it uses ocr and since the format of the files are different it is creating lot of false warnings. Also due to restrictions i cannot install any libraries on my machine using normal pip install.

      i am installing it by creating a folder and then doing python.exe pip i stall target ‘path created foler’ pdfminer

       

      i also tried installing pdfplumber but testcomplete is behaving weired with it

      once execution is going through and in second time its not going through

      i have to relaunch it after every run