Detecting and Analyzing Text in Single-Page Documents