Flutter OCR with google mlkit text recognizer and tesseract ocr for maintaining the same text format from image/PDF
I am developing a Flutter application where I need to recognize text from images and PDFs and maintain the same format as in the source. I am using google mlkit text recognizer and tesseract ocr for OCR and image_picker
for selecting images. However, I am facing issues in retaining the text format after recognition. The extracted text does not preserve line breaks, spacing, or formatting as in the original document.