PDF comparision

Originally posted by Afreen on July 08, 2026

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

Originally posted by rraghvani on July 09, 2026

See Working With PDF Files, or either look online, or ask AI to generate sample code.

Originally posted by Afreen on July 09, 2026

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

Originally posted by rraghvani on July 09, 2026

The weird behaviour and having to restart TestComplete everytime, has been an on going issue for many years. See Python - Specifics of Usage

You can use this free extension (https://chromewebstore.google.com/detail/pdf-champ-free-pdf-tools/cakbepehbnckifldldinacgpnienicea) to compare PDFs.