Learn how to extract a text from HTML documents getText() method is used. This method allows to extract a text from the entire document. Pagination and raw mode is not supported for emails....Learn how to extract a text from HTML documents getText() method is used. This method allows to extract a text from the entire document. Pagination and raw mode is not supported for emails.