|
Foxit PDF SDK
|
Data structure for alternate text information of a figure.
More...
Public Member Functions | |
| AlternateTextFigureData () | |
| Default constructor: creates an empty, non-decorative figure entry. | |
| AlternateTextFigureData (AlternateTextFigureData other) | |
| Copy constructor. | |
| AlternateTextFigureData (boolean is_decorative_figure, String alternate_text, String alternate_text_changed, int page_index, RectF rect) | |
| Construct with explicit values. More... | |
| synchronized void | delete () |
| Clean up related C++ resources immediately. More... | |
| String | getAlternate_text () |
| Get the alternate text before change (original). More... | |
| String | getAlternate_text_changed () |
| Get the alternate text after change (modified in fix mode). More... | |
| boolean | getIs_decorative_figure () |
| Get whether the figure is decorative (no alternate text). More... | |
| int | getPage_index () |
| Get the page index where the figure is located. More... | |
| RectF | getRect () |
| Get bounding rectangle of the figure on the page. More... | |
| void | set (boolean is_decorative_figure, String alternate_text, String alternate_text_changed, int page_index, RectF rect) |
| Set object values in one call. More... | |
| void | setAlternate_text (String value) |
| Set the alternate text before change (original). More... | |
| void | setAlternate_text_changed (String value) |
| Set the alternate text after change (modified in fix mode). More... | |
| void | setIs_decorative_figure (boolean value) |
| Set whether the figure is decorative (no alternate text). More... | |
| void | setPage_index (int value) |
| Set the page index where the figure is located. More... | |
| void | setRect (RectF value) |
| Set bounding rectangle of the figure on the page. More... | |
Data structure for alternate text information of a figure.
Stores information about a single figure used by accessibility tagging and fix workflows.
is_decorative_figure: whether the figure is decorative and should not have alternate text. alternate_text: the original alternate text (before edit). alternate_text_changed: the alternate text after user modification (used in fix mode). page_index: the zero-based page index where the figure is located. rect: the bounding rectangle of the figure on the page.
Typical usage:
TaggedPDF::GetNextFigureData() / GetPrevFigureData(). SetCurrentFigureDataInfo() and persist via TaggedPDF::SaveFigureData().
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.AlternateTextFigureData | ( | boolean | is_decorative_figure, |
| String | alternate_text, | ||
| String | alternate_text_changed, | ||
| int | page_index, | ||
| RectF | rect | ||
| ) |
Construct with explicit values.
| [in] | is_decorative_figure | true if figure is decorative (no alt text). |
| [in] | alternate_text | original alternate text (may be null/empty). |
| [in] | alternate_text_changed | alternate text after change (may be null/empty). |
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | rect | bounding rectangle of the figure on the page. |
| synchronized void com.foxit.sdk.addon.accessibility.AlternateTextFigureData.delete | ( | ) |
Clean up related C++ resources immediately.
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.getAlternate_text | ( | ) |
Get the alternate text before change (original).
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.getAlternate_text_changed | ( | ) |
Get the alternate text after change (modified in fix mode).
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.getIs_decorative_figure | ( | ) |
Get whether the figure is decorative (no alternate text).
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.getPage_index | ( | ) |
Get the page index where the figure is located.
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.getRect | ( | ) |
Get bounding rectangle of the figure on the page.
| void com.foxit.sdk.addon.accessibility.AlternateTextFigureData.set | ( | boolean | is_decorative_figure, |
| String | alternate_text, | ||
| String | alternate_text_changed, | ||
| int | page_index, | ||
| RectF | rect | ||
| ) |
Set object values in one call.
| [in] | is_decorative_figure | whether the figure is decorative. |
| [in] | alternate_text | original alternate text. |
| [in] | alternate_text_changed | alternate text after change. |
| [in] | page_index | The page index. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| [in] | rect | bounding rectangle of the figure. |
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.setAlternate_text | ( | String | value | ) |
Set the alternate text before change (original).
| [in] | value | The alternate text before change (original). |
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.setAlternate_text_changed | ( | String | value | ) |
Set the alternate text after change (modified in fix mode).
| [in] | value | The alternate text after change (modified in fix mode). |
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.setIs_decorative_figure | ( | boolean | value | ) |
Set whether the figure is decorative (no alternate text).
| [in] | value | Whether the figure is decorative (no alternate text). |
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.setPage_index | ( | int | value | ) |
Set the page index where the figure is located.
| [in] | value | The page index where the figure is located. Valid range: from 0 to (count-1). count is returned by function pdf.PDFDoc.getPageCount . |
| com.foxit.sdk.addon.accessibility.AlternateTextFigureData.setRect | ( | RectF | value | ) |
Set bounding rectangle of the figure on the page.
| [in] | value | Bounding rectangle of the figure on the page. |