public class ParsedText extends ParsedTextImpl
Modifier and Type | Field and Description |
---|---|
protected GraphicsState |
gs |
protected Matrix |
textToUserSpaceTransformMatrix |
Modifier and Type | Method and Description |
---|---|
void |
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 |
assemble(TextAssembler p) |
List<Word> |
getAsPartialWords() |
FinalText |
getFinalText(PdfReader reader,
int page,
TextAssembler assembler) |
float |
getUnscaledWidth(GraphicsState gs) |
String |
toString() |
getAscent, getDescent, getEndPoint, getSingleSpaceWidth, getStartPoint, getText, getWidth
protected final Matrix textToUserSpaceTransformMatrix
protected final GraphicsState gs
public List<Word> getAsPartialWords()
public float getUnscaledWidth(GraphicsState gs)
gs
- TODOpublic void accumulate(TextAssembler p, String contextName)
TextAssemblyBuffer
p
- the assembler that is visiting us.contextName
- TODOTextAssemblyBuffer.accumulate(com.lowagie.text.pdf.parser.TextAssembler, String)
public void assemble(TextAssembler p)
p
- we may pass ourselves to this assembler again during the final
assembly process.TextAssemblyBuffer.assemble(com.lowagie.text.pdf.parser.TextAssembler)
public FinalText getFinalText(PdfReader reader, int page, TextAssembler assembler)
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.TextAssemblyBuffer.getFinalText(com.lowagie.text.pdf.PdfReader,
int, com.lowagie.text.pdf.parser.TextAssembler)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.