public interface TextAssembler
Modifier and Type | Method and Description |
---|---|
FinalText |
endParsingContext(String containingElementName) |
String |
getWordId()
assembler can calculate an identifier for each word on a page, for use in
markup.
|
void |
process(FinalText completed,
String contextName) |
void |
process(ParsedText parsed,
String contextName) |
void |
process(Word completed,
String contextName) |
void |
renderText(FinalText completed) |
void |
renderText(ParsedTextImpl parsed) |
void |
reset() |
void |
setPage(int page) |
void process(FinalText completed, String contextName)
completed
- process a complete chunk -- just add this subsection into the
proper place.contextName
- Name of the element context we are in. Null value if it's an
Artifact.void process(Word completed, String contextName)
completed
- process a complete chunk -- just add this subsection into the
proper place.contextName
- Name of the element context we are in. Null value if it's an
Artifact.void process(ParsedText parsed, String contextName)
parsed
- process one of a number of raw pdf text chunks, with
placement, font, etc.contextName
- Name of the element context we are in. Null value if it's an
Artifact.void renderText(FinalText completed)
completed
- process a complete chunk -- just add this subsection into the
proper place.void renderText(ParsedTextImpl parsed)
parsed
- process one of a number of raw pdf text chunks, with
placement, font, etc.FinalText endParsingContext(String containingElementName)
containingElementName
- This is an element name to surround the extracted textString getWordId()
void setPage(int page)
page
- number of the page we are assemblingvoid reset()
Copyright © 2020. All rights reserved.