iText 8.0.2 API
|
Provides information and calculations needed by render listeners to display/evaluate text render operations. More...
Public Member Functions |
|
TextRenderInfo (PdfString str, CanvasGraphicsState gs, Matrix textMatrix, Stack< CanvasTag > canvasTagHierarchy) | |
Creates a new TextRenderInfo object More... |
|
virtual String | GetText () |
Gets the text to be rendered according to canvas operators. More... |
|
virtual PdfString | GetPdfString () |
|
|
virtual Matrix | GetTextMatrix () |
Gets original Text matrix. More... |
|
virtual bool | HasMcid (int mcid) |
Checks if the text belongs to a marked content sequence with a given mcid. More... |
|
virtual bool | HasMcid (int mcid, bool checkTheTopmostLevelOnly) |
Checks if the text belongs to a marked content sequence with a given mcid. More... |
|
virtual int | GetMcid () |
Gets the marked-content identifier associated with this TextRenderInfo instance More... |
|
virtual LineSegment | GetBaseline () |
Gets the baseline for the text (i.e. the line that the text 'sits' on) This value includes the Rise of the draw operation - see GetRise() for the amount added by Rise More... |
|
virtual LineSegment | GetUnscaledBaseline () |
virtual LineSegment | GetAscentLine () |
Gets the ascent line for the text (i.e. the line that represents the topmost extent that a string of the current font could have). More... |
|
virtual LineSegment | GetDescentLine () |
Gets the descent line for the text (i.e. the line that represents the bottom most extent that a string of the current font could have). More... |
|
virtual PdfFont | GetFont () |
Getter for the font More... |
|
virtual float | GetRise () |
The rise represents how far above the nominal baseline the text should be rendered. More... |
|
virtual IList< iText.Kernel.Pdf.Canvas.Parser.Data.TextRenderInfo > | GetCharacterRenderInfos () |
Provides detail useful if a listener needs access to the position of each individual glyph in the text render operation More... |
|
virtual float | GetSingleSpaceWidth () |
|
|
virtual int | GetTextRenderMode () |
virtual Color | GetFillColor () |
|
|
virtual Color | GetStrokeColor () |
|
|
virtual float | GetFontSize () |
virtual float | GetHorizontalScaling () |
virtual float | GetCharSpacing () |
virtual float | GetWordSpacing () |
virtual float | GetLeading () |
virtual String | GetActualText () |
Gets /ActualText tag entry value if this text chunk is marked content. More... |
|
virtual String | GetExpansionText () |
Gets /E tag (expansion text) entry value if this text chunk is marked content. More... |
|
virtual bool | IsReversedChars () |
Determines if the text represented by this TextRenderInfo instance is written in a text showing operator wrapped by /ReversedChars marked content sequence More... |
|
virtual IList< CanvasTag > | GetCanvasTagHierarchy () |
Gets hierarchy of the canvas tags that wraps given text. More... |
|
virtual float | GetUnscaledWidth () |
|
|
![]() |
|
AbstractRenderInfo (CanvasGraphicsState gs) | |
virtual CanvasGraphicsState | GetGraphicsState () |
virtual bool | IsGraphicsStatePreserved () |
virtual void | PreserveGraphicsState () |
virtual void | ReleaseGraphicsState () |
Provides information and calculations needed by render listeners to display/evaluate text render operations.
Provides information and calculations needed by render listeners to display/evaluate text render operations.
This is passed between the iText.Kernel.Pdf.Canvas.Parser.PdfCanvasProcessor and iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener objects as text rendering operations are discovered
|
inline |
Creates a new TextRenderInfo object
str | the PDF string that should be displayed |
gs | the graphics state (note: at this time, this is not immutable, so don't cache it) |
textMatrix | the text matrix at the time of the render operation |
canvasTagHierarchy | the marked content tags sequence, if available |
|
inlinevirtual |
Gets /ActualText tag entry value if this text chunk is marked content.
null
if none found
|
inlinevirtual |
Gets the ascent line for the text (i.e. the line that represents the topmost extent that a string of the current font could have).
Gets the ascent line for the text (i.e. the line that represents the topmost extent that a string of the current font could have). This value includes the Rise of the draw operation - see GetRise() for the amount added by Rise.
|
inlinevirtual |
Gets the baseline for the text (i.e. the line that the text 'sits' on) This value includes the Rise of the draw operation - see GetRise() for the amount added by Rise
|
inlinevirtual |
Gets hierarchy of the canvas tags that wraps given text.
|
inlinevirtual |
Provides detail useful if a listener needs access to the position of each individual glyph in the text render operation
|
inlinevirtual |
Gets the descent line for the text (i.e. the line that represents the bottom most extent that a string of the current font could have).
Gets the descent line for the text (i.e. the line that represents the bottom most extent that a string of the current font could have). This value includes the Rise of the draw operation - see GetRise() for the amount added by Rise.
|
inlinevirtual |
Gets /E tag (expansion text) entry value if this text chunk is marked content.
null
if none found
|
inlinevirtual |
Getter for the font
|
inlinevirtual |
Gets the marked-content identifier associated with this TextRenderInfo instance
|
inlinevirtual |
The rise represents how far above the nominal baseline the text should be rendered.
The rise represents how far above the nominal baseline the text should be rendered. The GetBaseline() , GetAscentLine() and GetDescentLine() methods already include Rise. This method is exposed to allow listeners to determine if an explicit rise was involved in the computation of the baseline (this might be useful, for example, for identifying superscript rendering)
|
inlinevirtual |
Gets the text to be rendered according to canvas operators.
|
inlinevirtual |
Gets original Text matrix.
|
inlinevirtual |
|
inlinevirtual |
Checks if the text belongs to a marked content sequence with a given mcid.
mcid | a marked content id |
|
inlinevirtual |
Checks if the text belongs to a marked content sequence with a given mcid.
mcid | a marked content id |
checkTheTopmostLevelOnly | indicates whether to check the topmost level of marked content stack only |
|
inlinevirtual |
Determines if the text represented by this TextRenderInfo instance is written in a text showing operator wrapped by /ReversedChars marked content sequence
true
if this text block lies within /ReversedChars block, false
otherwise