I will appreciate if you please share your sample code along with input PDF file. It will help us to understand your requirement exactly and address it accordingly.
You can use our Aspose.OCR for Java API to deal with OCR.
We are sorry for the inconvenience.
I have tested the scenario and have managed to reproduce the problem that in the xml "Capitol View" text is not appearing for the vertically aligned text. For the sake of correction, I have logged it as PDFJAVA-36546 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time.
We are sorry for this inconvenience.
Thanks for your inquriy. I am afraid the issue investigation is not completed yet. We will update you as soon as our team completes the investigation and shares some updates.
Thanks for your patience and cooperation.