FindPageSplitPosition method of the FRPage Object in the ABBYY FineReader Engine API — Finds the position at which an image can be split into pages (for example, a book spread); takes a TextOrientation as input.
Use this file to discover all available pages before exploring further.
This method finds the position of splitting the image on pages, if it exists. It is used to detect the possibility of splitting dual pages in a book.To find the position where the image can be split:
Pass the returned TextOrientation object to the FindPageSplitPosition method.
The split position is defined by two lines, the coordinates of which are returned in the startSplitPosition and endSplitPosition parameters. The image area between these two lines should be removed when splitting image on pages. This area usually contains some garbage.
void FindPageSplitPosition( IObjectsExtractionParams ExtractionParams, ITextOrientation TextOrientation, out PageSplitDirectionEnum SplitDirection, out int StartSplitPosition, out int EndSplitPosition);
Sub FindPageSplitPosition( _ ExtractionParams As IObjectsExtractionParams, _ TextOrientation As TextOITextOrientationrientation, _ ByRef SplitDirection As PageSplitDirectionEnum, _ ByRef StartSplitPosition As Integer, _ ByRef EndSplitPosition As Integer _)
ExtractionParams[in] The ObjectsExtractionParams object that stores parameters of objects extraction. This parameter may be 0. In this case, the objects are extracted with default parameters, or, if a profile has been loaded, the parameters set by this profile are used.TextOrientation[in] Refers to the TextOrientation object that specifies orientation of the text on the image. If this parameter is 0, ABBYY FineReader Engine presumes that the image has normal orientation.SplitDirection[out] This variable receives the type of possible split: vertical split, horizontal split, or no split. Refer to the PageSplitDirectionEnum description for details.StartSplitPosition[out] The coordinate of the first line which defines split position (if a split is possible). The meaning of this value depends on the value of the splitDirection variable. If the possibility of vertical split is detected, it contains the horizontal coordinate of the split line. If the possibility of horizontal split is detected, it contains the vertical coordinate of the split line. Coordinate is given against the deskewed black-and-white page of the image.EndSplitPosition[out] The coordinate of the second line which defines split position (if a split is possible). The meaning of this value depends on the value of the splitDirection variable. If the possibility of vertical split is detected, it contains the horizontal coordinate of the split line. If the possibility of horizontal split is detected, it contains the vertical coordinate of the split line. Coordinate is given against the deskewed black-and-white page of the image.