How to check the details on the printed receipt in appium

Hi everyone,

I have a scenario in which user will enter details on the form and save it.Then there is a print button on the same form ,after clicking on the print button user receives a printed receipt.need to verify the details on the printed receipt and assert it.
How to handle such scenario.please help .
its bit urgent.Thanks in advance.

I’m suggesting a workaround. May be that will help you. If you are using java then use external tess4j libs to convert text. Image to text converter.
So when print recipet will display on screen, take a snapshot using code and pass it to ocr engine to convert to text and compare details using assertion. I hope that will slove your issue as of now. Until you get easy solution.

Thanks Appium_Master
willl try this solution.