# Class: com.pnfsoftware.jeb.core.output.text.TextDocumentUtil

Utility methods for [ITextDocument](ITextDocument) and [ITextDocumentPart](ITextDocumentPart).

## Static Method: buildText
- parameter: `doc`, type: `com.pnfsoftware.jeb.core.output.text.ITextDocument`
- return type: `java.lang.StringBuilder`

Description: Build the text buffer held in a text document.
parameter: doc: source document
return: a newly built buffer containing the document text

## Static Method: buildText
- parameter: `doc`, type: `com.pnfsoftware.jeb.core.output.text.ITextDocument`
- parameter: `maxLineCount`, type: `int`
- return type: `java.lang.StringBuilder`

Description: Build the text buffer held in a text document.
parameter: doc: source document
parameter: maxLineCount: maximum number of lines to include
return: a newly built buffer containing the requested document text

## Static Method: buildText
- parameter: `part`, type: `com.pnfsoftware.jeb.core.output.text.ITextDocumentPart`
- return type: `java.lang.StringBuilder`

Description: Build the text buffer held in a document part.
parameter: part: source document part
return: a newly built buffer containing the part text

## Static Method: buildText
- parameter: `part`, type: `com.pnfsoftware.jeb.core.output.text.ITextDocumentPart`
- parameter: `maxLineCount`, type: `int`
- return type: `java.lang.StringBuilder`

Description: Build the text buffer held in a document part.
parameter: part: source document part
parameter: maxLineCount: maximum number of lines to include
return: a newly built buffer containing the requested part text

## Static Method: getText
- parameter: `doc`, type: `com.pnfsoftware.jeb.core.output.text.ITextDocument`
- return type: `java.lang.String`

Description: Get the text buffer of a text document.
parameter: doc: source document
return: the complete textual contents of the document

