|
iDRS™ SDK 16
|
Interface for CPageZone wrapper. More...
Go to the source code of this file.
Functions | |
| CPageZone | CPageZone_Create (enum ZoneType const evZoneType, idrs_exception *pargException) |
| Creates an instance of CPageZone object with the data object pointing to the correct type of zone. | |
| CPageZone | CPageZone_Create2 (enum ZoneType const evZoneType, CPolygon objBoundingPolygon, idrs_exception *pargException) |
| Creates an instance of CPageZone object with the data object pointing to the correct type of zone. | |
| enum ZoneType | CPageZone_GetZoneType (const CPageZone argCPageZone, idrs_exception *pargException) |
| Get the zone type. | |
| CPolygon | CPageZone_GetBoundingPolygon (const CPageZone argCPageZone, idrs_exception *pargException) |
| Get the bounding polygon. | |
| void | CPageZone_SetBoundingPolygon (CPageZone argCPageZone, const CPolygon argBoundingPolygon, idrs_exception *pargException) |
| Set the polygon containing all zone content. | |
| PaddingInfo | CPageZone_GetPadding (const CPageZone argCPageZone, idrs_exception *pargException) |
| Get the zone's padding information. | |
| void | CPageZone_SetPadding (CPageZone argCPageZone, const PaddingInfo *stPaddingInfo, idrs_exception *pargException) |
| Set the zone's padding information. | |
| enum TextDirection | CPageZone_GetTextDirection (const CPageZone argCPageZone, idrs_exception *pargException) |
| Get the text direction for the current zone. | |
| void | CPageZone_SetTextDirection (CPageZone argCPageZone, enum TextDirection const evTextDirection, idrs_exception *pargException) |
| Set the text direction for the current zone. | |
| IDRS_INT | CPageZone_GetZoneOrder (const CPageZone argCPageZone, idrs_exception *pargException) |
| Get the reading order of the zone. | |
| void | CPageZone_SetZoneOrder (CPageZone argCPageZone, IDRS_INT const iZoneOrder, idrs_exception *pargException) |
| Set the reading order to a zone. | |
| void | CPageZone_SetIdentifier (CPageZone argCPageZone, const idrs_string strZoneIdentifier, idrs_exception *pargException) |
| Assigns a unique identifier to the zone. | |
| idrs_string | CPageZone_GetIdentifier (const CPageZone argCPageZone, idrs_exception *pargException) |
| Retrieves the identifier of the zone. | |
| void | CPageZone_Destroy (CPageZone argCPageZone, idrs_exception *pargException) |
| Destroys a CPageZone handle. | |
| CPageZoneArray | ArrayInterface_Create_CPageZoneArray (idrs_exception *pargException) |
| Creates a new CPageZoneArray object. | |
Interface for CPageZone wrapper.
| CPageZoneArray ArrayInterface_Create_CPageZoneArray | ( | idrs_exception * | pargException | ) |
Creates a new CPageZoneArray object.
| pargException | Pointer to exception structure that will be filled if an exception occurs |
Creates an instance of CPageZone object with the data object pointing to the correct type of zone.
This method instantiates the following objects, based on the zone type:
| evZoneType | Zone type |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CPageZone CPageZone_Create2 | ( | enum ZoneType const | evZoneType, |
| CPolygon | objBoundingPolygon, | ||
| idrs_exception * | pargException | ||
| ) |
Creates an instance of CPageZone object with the data object pointing to the correct type of zone.
This method instantiates the following objects, based on the zone type:
| evZoneType | Zone type |
| objBoundingPolygon | Polygon where all elements withing the zone are located |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CPageZone_Destroy | ( | CPageZone | argCPageZone, |
| idrs_exception * | pargException | ||
| ) |
| CPolygon CPageZone_GetBoundingPolygon | ( | const CPageZone | argCPageZone, |
| idrs_exception * | pargException | ||
| ) |
Get the bounding polygon.
| argCPageZone | CPageZone handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string CPageZone_GetIdentifier | ( | const CPageZone | argCPageZone, |
| idrs_exception * | pargException | ||
| ) |
Retrieves the identifier of the zone.
If zonal OCR recognition has been performed, the zone identifier is automatically copied from the COcrZoneDescription object used to define the current zone's OCR parameters.
If full-page OCR recognition has been executed, the zone identifier will be an empty string.
If SetIdentifier has been called, this method returns the assigned zone identifier.
| argCPageZone | CPageZone handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| PaddingInfo CPageZone_GetPadding | ( | const CPageZone | argCPageZone, |
| idrs_exception * | pargException | ||
| ) |
Get the zone's padding information.
Paragraph style's margins are expected to be computed relative to this rectangle.
| argCPageZone | CPageZone handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum TextDirection CPageZone_GetTextDirection | ( | const CPageZone | argCPageZone, |
| idrs_exception * | pargException | ||
| ) |
Get the text direction for the current zone.
The default value is IDRS::TextDirection::LeftToRight
| argCPageZone | CPageZone handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
Get the reading order of the zone.
The ocr engine returns the zones in reading order. The reading order is considering the human reading order, based on the language used for OCR
| argCPageZone | CPageZone handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum ZoneType CPageZone_GetZoneType | ( | const CPageZone | argCPageZone, |
| idrs_exception * | pargException | ||
| ) |
Get the zone type.
| argCPageZone | CPageZone handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CPageZone_SetBoundingPolygon | ( | CPageZone | argCPageZone, |
| const CPolygon | argBoundingPolygon, | ||
| idrs_exception * | pargException | ||
| ) |
Set the polygon containing all zone content.
| argCPageZone | CPageZone handle |
| argBoundingPolygon | Polygon object |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CPageZone_SetIdentifier | ( | CPageZone | argCPageZone, |
| const idrs_string | strZoneIdentifier, | ||
| idrs_exception * | pargException | ||
| ) |
Assigns a unique identifier to the zone.
| argCPageZone | CPageZone handle |
| strZoneIdentifier | The user-defined identifier for the zone. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CPageZone_SetPadding | ( | CPageZone | argCPageZone, |
| const PaddingInfo * | stPaddingInfo, | ||
| idrs_exception * | pargException | ||
| ) |
Set the zone's padding information.
Paragraph style's margins are expected to be computed relative to this rectangle.
| argCPageZone | CPageZone handle |
| stPaddingInfo | The padding to set |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CPageZone_SetTextDirection | ( | CPageZone | argCPageZone, |
| enum TextDirection const | evTextDirection, | ||
| idrs_exception * | pargException | ||
| ) |
Set the text direction for the current zone.
The default value is IDRS::TextDirection::LeftToRight
| argCPageZone | CPageZone handle |
| evTextDirection | Text direction |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CPageZone_SetZoneOrder | ( | CPageZone | argCPageZone, |
| IDRS_INT const | iZoneOrder, | ||
| idrs_exception * | pargException | ||
| ) |
Set the reading order to a zone.
| argCPageZone | CPageZone handle |
| iZoneOrder | Zone reading order |
| pargException | Pointer to exception structure that will be filled if an exception occurs |