|
Foxit PDF SDK
|
Data structure for alternate text information of a figure. More...
Public Member Functions | |
| def | GetAlternate_text () |
| Get the alternate text before change (original). More... | |
| def | GetAlternate_text_changed () |
| Get the alternate text after change (modified in fix mode). More... | |
| def | GetIs_decorative_figure () |
| Get whether the figure is decorative (no alternate text). More... | |
| def | GetPage_index () |
| Get the page index where the figure is located. More... | |
| def | GetRect () |
| Get bounding rectangle of the figure on the page. More... | |
| def | Set (is_decorative_figure, alternate_text, alternate_text_changed, page_index, rect) |
| Set object values in one call. More... | |
| def | SetAlternate_text (value) |
| Set the alternate text before change (original). More... | |
| def | SetAlternate_text_changed (value) |
| Set the alternate text after change (modified in fix mode). More... | |
| def | SetIs_decorative_figure (value) |
| Set whether the figure is decorative (no alternate text). More... | |
| def | SetPage_index (value) |
| Set the page index where the figure is located. More... | |
| def | SetRect (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:
Iterate with TaggedPDF::GetNextFigureData() / GetPrevFigureData().
Modify using SetCurrentFigureDataInfo() and persist via TaggedPDF::SaveFigureData().
| fsdk.AlternateTextFigureData.GetAlternate_text | ( | ) |
Get the alternate text before change (original).
| fsdk.AlternateTextFigureData.GetAlternate_text_changed | ( | ) |
Get the alternate text after change (modified in fix mode).
| fsdk.AlternateTextFigureData.GetIs_decorative_figure | ( | ) |
Get whether the figure is decorative (no alternate text).
| fsdk.AlternateTextFigureData.GetPage_index | ( | ) |
Get the page index where the figure is located.
| fsdk.AlternateTextFigureData.GetRect | ( | ) |
Get bounding rectangle of the figure on the page.
| def fsdk.AlternateTextFigureData.Set | ( | is_decorative_figure, | |
| alternate_text, | |||
| alternate_text_changed, | |||
| page_index, | |||
| 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 fsdk.PDFDoc.GetPageCount . |
| [in] | rect | bounding rectangle of the figure. |
| fsdk.AlternateTextFigureData.SetAlternate_text | ( | value | ) |
Set the alternate text before change (original).
| [in] | value | The alternate text before change (original). |
| fsdk.AlternateTextFigureData.SetAlternate_text_changed | ( | value | ) |
Set the alternate text after change (modified in fix mode).
| [in] | value | The alternate text after change (modified in fix mode). |
| fsdk.AlternateTextFigureData.SetIs_decorative_figure | ( | value | ) |
Set whether the figure is decorative (no alternate text).
| [in] | value | Whether the figure is decorative (no alternate text). |
| fsdk.AlternateTextFigureData.SetPage_index | ( | 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 fsdk.PDFDoc.GetPageCount . |
| fsdk.AlternateTextFigureData.SetRect | ( | value | ) |
Set bounding rectangle of the figure on the page.
| [in] | value | Bounding rectangle of the figure on the page. |