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

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

    public PDFTextWordCollection extractWords(
       PDFContentExtractionContext context
    )

#### Parameters

context
  Context for text extraction.

#### Return Value

A collection of words 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.