Patent ID: 9535880
Date: 2017-01-03
CPC Classifications: G06F

Claim:
1. A computer implemented method comprising: receiving, by a server, an image of text as displayed on a webpage using a first browser and a set of text data and a set of formatting metadata corresponding to the text on the webpage using the first browser; segmenting the image into a plurality of sub-images, wherein each sub-image represents a line of the text data; extracting text characters from each sub-image; and based on an analysis of the image and the set of formatting metadata, calculating, by the server, a count of characters corresponding to a line of entered text as shown in the image, wherein calculating the count of characters comprises counting a number of leading and trailing spaces in the line of entered text; identifying, from the set of formatting data, a character at a position equal to the count of characters corresponding to the line of entered text as shown in the image; determining whether a next character after the identified character is a newline character; based on determining that the identified character is not a newline character, generating a file that allows the text to be displayed by a second browser of a different type or in flattened form as the text was displayed on the webpage using the first browser by inserting a newline character at the position equal to the count of characters corresponding to the line of entered text; and using the generated file to display the text in flattened form exactly as the text was displayed on the webpage by the first browser.