public class TextExtractor.Style
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees the native memory of the object.
|
boolean |
equals(java.lang.Object other) |
java.awt.Color |
getColor()
Get the color.
|
Obj |
getFont()
Get the font as Cos/SDF object
|
java.lang.String |
getFontName()
Get the font name.
|
double |
getFontSize()
Get the font size.
|
int |
getWeight()
Get the weight.
|
boolean |
isItalic()
Checks if font is italic.
|
boolean |
isSerif()
Checks if font is serif.
|
public void destroy()
public Obj getFont()
public java.lang.String getFontName()
public double getFontSize()
Note: Unlike the 'font size' in the graphics state (pdftron.PDF.GState) the returned font size accounts for the effects CTM, text matrix, and other graphics state attributes that can affect the appearance of text.
public int getWeight()
public boolean isItalic()
Note: the return value corresponds to the state of 'italic' flag in the 'Font Descriptor'.
public boolean isSerif()
Note: the return value corresponds to the state of 'serif' flag in the 'Font Descriptor'.
public java.awt.Color getColor()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object