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

extractText(PDFContentExtractionContext) Method
In This Topic
Extracts the text from the PDF page.
Syntax

    public java.lang.String extractText(
       PDFContentExtractionContext context
    )

#### Parameters

context
  Context for text extraction.

#### Return Value

The 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.