My Requirement is to extract the text from scanned pdf using OCR technique for Multiple Bank statements with different formats.

There are might be many libraries and tools are present to extract data or through api, but facing alignment/space or newline text issues. I'm getting a single space or the next line between each word. for example, pdfplumber python library works for the normal(not scanned pdf) bank pdf by adjusting tolerance and density for space issues.

https://i.sstatic.net/X7Ci4.png trying for a similar alignment result for Scanned PDF.

  • Are you interested in developing an application or an end-user ready product? What budget for the solution? May 16, 2022 at 15:14

1 Answer 1


The LEADTOOLS Document Converter recognizes text using an OCR engine while alignment and formatting is maintained in conversion by using Scalable Vector Graphics (SVG) to accurately generate the output. Generated TXT output can be configured to be formatted to follow the input’s spacing and margins. You can download a free evaluation of the toolkit from the website here and you can find a number of Document Converter tutorial for different platforms here. (Disclaimer: I am an employee of the vendor)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.