Package com.lowagie.text.pdf.parser
Interface TextAssemblyBuffer
- All Known Implementing Classes:
FinalText
,ParsedText
,ParsedTextImpl
,Word
public interface TextAssemblyBuffer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulate
(TextAssembler p, String contextName) We pass ourselves to the assembler, which is a visitor, so that it can accumulate information on this text depending on its type.void
getFinalText
(PdfReader reader, int page, TextAssembler assembler, boolean useMarkup) getText()
-
Method Details
-
getText
String getText()- Returns:
- the text to render
-
getFinalText
- Parameters:
reader
- pdfReader that knows about our document. (size, etc. available here).page
- which page are we extracting text from.assembler
- Builds result by accepting content from text components of various sorts.useMarkup
- Should we generate tagged text, or just plain text.- Returns:
- the final text ready to concatenate into result string.
-
accumulate
We pass ourselves to the assembler, which is a visitor, so that it can accumulate information on this text depending on its type. The result is calculated by a final "assembly" phase, after accumulation is done. This is because we may have non-contiguous items in a PDF text stream.- Parameters:
p
- the assembler that is visiting us.contextName
- Name of the surrounding markup element/"context" if we're generating tagged output.- See Also:
-
assemble
- Parameters:
p
- we may pass ourselves to this assembler again during the final assembly process.
-