PDF4Java Reference Documentation
com.o2sol.pdf4java.content Package / PDFContentExtractor Class / extractTextLines Method / extractTextLines(PDFContentExtractionContext) Method
Context for text extraction.
Collapse All Expand All
In This Topic

extractTextLines(PDFContentExtractionContext) Method
In This Topic
Extracts the text from the PDF page as a collection of Objects.
Syntax

    public PDFTextLineCollection extractTextLines(
       PDFContentExtractionContext context
    )

#### Parameters

context
  Context for text extraction.

#### Return Value

The lines of text on the page.
Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When context is null

See Also

#### Reference

PDFContentExtractor Class
PDFContentExtractor Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.