private void extractDocumentArea(WPPrefixArea prefixArea, WPInputStream in,
                                     XHTMLContentHandler xhtml) throws SAXException, IOException {

        // Move to offset (for some reason skip() did not work).
        for (int i = 0; i < prefixArea.getDocAreaPointer(); i++) {
            in.readWPByte();
        }

        xhtml.startDocument();

        getDocumentAreaExtractor(prefixArea).extract(in, xhtml);

        xhtml.endDocument();
    }
<p>Parser for Corel WordPerfect documents. Targets WP6 File Format
but appears to be compatible with more recent versions too.</p>

@author Pascal Essiembre
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/wordperfect/WordPerfectParser.java