Foxit PDF SDK
|
Public Member Functions | |
TextPageCharInfo () | |
Constructor. | |
TextPageCharInfo (Font font, int flag, float font_size, float origin_x, float origin_y, RectF char_box, RectF char_outbox, Matrix2D matrix) | |
Constructor, with parameters. More... | |
TextPageCharInfo (TextPageCharInfo char_info) | |
Constructor, with another character information object. More... | |
synchronized void | delete () |
Clean up related resources immediately. More... | |
RectF | getChar_box () |
Get the glyph bounding box in page space. More... | |
RectF | getChar_outbox () |
Get the typographic(display and printing) bounding box in page space. More... | |
int | getFlag () |
Get flags to indicate which properties of textpage character flag are meaningful. More... | |
Font | getFont () |
Get a font for character. More... | |
float | getFont_size () |
Get font size for character. More... | |
Matrix2D | getMatrix () |
Get the matrix of the character. More... | |
float | getOrigin_x () |
Get the x-coordinate of the origin position. More... | |
float | getOrigin_y () |
Get the y-coordinate of the origin position. More... | |
void | set (Font font, int flag, float font_size, float origin_x, float origin_y, RectF char_box, RectF char_outbox, Matrix2D matrix) |
Set value. More... | |
void | setChar_box (RectF value) |
Set the glyph bounding box in page space. More... | |
void | setChar_outbox (RectF value) |
Set the typographic(display and printing) bounding box in page space. More... | |
void | setFlag (int value) |
Set flags to indicate which properties of textpage character flag are meaningful. More... | |
void | setFont (Font value) |
Set a font for character. More... | |
void | setFont_size (float value) |
Set font size for character. More... | |
void | setMatrix (Matrix2D value) |
Set the matrix of the character. More... | |
void | setOrigin_x (float value) |
Set the x-coordinate of the origin position. More... | |
void | setOrigin_y (float value) |
Set the y-coordinate of the origin position. More... | |
Static Public Attributes | |
static final int | e_ComboWord = 4 |
Character flag: ComboWord. | |
static final int | e_Generated = 1 |
Character flag: Generated. | |
static final int | e_Hyphen = 3 |
Character flag: Hyphen. | |
static final int | e_Normal = 0 |
Character flag: Normal. | |
static final int | e_Unknown = -1 |
Character flag: Unknown. | |
static final int | e_UnUnicode = 2 |
Character flag: UnUnicode. | |
This class represents textpage character information.
com.foxit.sdk.pdf.TextPageCharInfo.TextPageCharInfo | ( | Font | font, |
int | flag, | ||
float | font_size, | ||
float | origin_x, | ||
float | origin_y, | ||
RectF | char_box, | ||
RectF | char_outbox, | ||
Matrix2D | matrix | ||
) |
Constructor, with parameters.
[in] | font | A valid font object. |
[in] | flag | Flags to indicate which properties of textpage character flag are meaningful. Please refer to values starting from com.foxit.sdk.pdf.TextPageCharInfo.e_Normal and this should be one of these values except com.foxit.sdk.pdf.TextPageCharInfo.e_Unknown . |
[in] | font_size | Font size. This should be a positive value. |
[in] | origin_x | The x-coordinate of the origin position. |
[in] | origin_y | The y-coordinate of the origin position. |
[in] | char_box | The glyph bounding box in page space. |
[in] | char_outbox | The typographic (display and printing) bounding box in page space. The width is advance width, and the height is the sum of the ascent and descent. |
[in] | matrix | The matrix. |
com.foxit.sdk.pdf.TextPageCharInfo.TextPageCharInfo | ( | TextPageCharInfo | char_info | ) |
Constructor, with another character information object.
[in] | char_info | Another character information object. |
synchronized void com.foxit.sdk.pdf.TextPageCharInfo.delete | ( | ) |
Clean up related resources immediately.
com.foxit.sdk.pdf.TextPageCharInfo.getChar_box | ( | ) |
Get the glyph bounding box in page space.
com.foxit.sdk.pdf.TextPageCharInfo.getChar_outbox | ( | ) |
Get the typographic(display and printing) bounding box in page space.
com.foxit.sdk.pdf.TextPageCharInfo.getFlag | ( | ) |
Get flags to indicate which properties of textpage character flag are meaningful.
Please refer to values starting from com.foxit.sdk.pdf.TextPageCharInfo.e_Normal and this should be one of these values.
com.foxit.sdk.pdf.TextPageCharInfo.getFont | ( | ) |
Get a font for character.
com.foxit.sdk.pdf.TextPageCharInfo.getFont_size | ( | ) |
Get font size for character.
This value would a positive value.
com.foxit.sdk.pdf.TextPageCharInfo.getMatrix | ( | ) |
Get the matrix of the character.
com.foxit.sdk.pdf.TextPageCharInfo.getOrigin_x | ( | ) |
Get the x-coordinate of the origin position.
com.foxit.sdk.pdf.TextPageCharInfo.getOrigin_y | ( | ) |
Get the y-coordinate of the origin position.
void com.foxit.sdk.pdf.TextPageCharInfo.set | ( | Font | font, |
int | flag, | ||
float | font_size, | ||
float | origin_x, | ||
float | origin_y, | ||
RectF | char_box, | ||
RectF | char_outbox, | ||
Matrix2D | matrix | ||
) |
Set value.
[in] | font | A valid font object. |
[in] | flag | Flags to indicate which properties of textpage character flag are meaningful. Please refer to values starting from com.foxit.sdk.pdf.TextPageCharInfo.e_Normal and this should be one of these values except com.foxit.sdk.pdf.TextPageCharInfo.e_Unknown . |
[in] | font_size | Font size. This should be a positive value. |
[in] | origin_x | The x-coordinate of the origin position. |
[in] | origin_y | The y-coordinate of the origin position. |
[in] | char_box | The glyph bounding box in page space. |
[in] | char_outbox | The typographic (display and printing) bounding box in page space. The width is advance width, and the height is the sum of the ascent and descent. |
[in] | matrix | The matrix. |
com.foxit.sdk.pdf.TextPageCharInfo.setChar_box | ( | RectF | value | ) |
Set the glyph bounding box in page space.
[in] | value | The glyph bounding box in page space. |
com.foxit.sdk.pdf.TextPageCharInfo.setChar_outbox | ( | RectF | value | ) |
Set the typographic(display and printing) bounding box in page space.
[in] | value | The typographic(display and printing) bounding box in page space. |
com.foxit.sdk.pdf.TextPageCharInfo.setFlag | ( | int | value | ) |
Set flags to indicate which properties of textpage character flag are meaningful.
Please refer to values starting from com.foxit.sdk.pdf.TextPageCharInfo.e_Normal and this should be one of these values.
[in] | value | Flags to indicate which properties of textpage character flag are meaningful. |
com.foxit.sdk.pdf.TextPageCharInfo.setFont | ( | Font | value | ) |
Set a font for character.
[in] | value | A font for character. |
com.foxit.sdk.pdf.TextPageCharInfo.setFont_size | ( | float | value | ) |
Set font size for character.
This value would a positive value.
[in] | value | Font size for character. |
com.foxit.sdk.pdf.TextPageCharInfo.setMatrix | ( | Matrix2D | value | ) |
Set the matrix of the character.
[in] | value | The matrix of the character. |
com.foxit.sdk.pdf.TextPageCharInfo.setOrigin_x | ( | float | value | ) |
Set the x-coordinate of the origin position.
[in] | value | The x-coordinate of the origin position. |
com.foxit.sdk.pdf.TextPageCharInfo.setOrigin_y | ( | float | value | ) |
Set the y-coordinate of the origin position.
[in] | value | The y-coordinate of the origin position. |