1. A method for detecting ruby text in a fixed format document, the method comprising: receiving, at a parser, a fixed format document containing one or more lines of text on one or more pages; detecting, by a line detection engine, one or more lines in the fixed format document containing one or more attributes of a ruby line; retaining the one or more lines in the fixed format document containing one or more attributes of a ruby line as ruby line candidates and a line successive to the one or more lines as ruby base line candidates; analyzing, by a document processor, the ruby line candidate for finding one or more ruby texts contained in the ruby line candidate; matching the one or more ruby texts with a corresponding ruby base text in a successive ruby base line candidate for reconstruction in a flow format document; and reconstructing, by a serializer, the fixed format document to a flow format document containing the matched one or more ruby texts and corresponding ruby base text.
8. The method of claim 1 , wherein matching the one or more ruby texts with a corresponding ruby base text in a successive ruby base line candidate comprises assigning characters below the ruby text in the ruby base line with the ruby text.