API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Converter Settings Functions > IG_REC_converter_pagebreaks_get |
Returns the flag indicating whether or not to insert page breaks into the output document.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_converter_pagebreaks_get( LPCSTR lpszFormatName, enumIGRecPageBreaks* lpPageBreaks ); |
Name | Type | Description |
---|---|---|
lpszFormatName | LPCSTR | Symbolic name of the output format like Converters.Text.Cvs. See IG_REC_output_format_set for more info about format names. |
lpPageBreaks | enumIGRecPageBreaks* | Buffer to retrieve Page Breaks value. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; enumIGRecPageBreaks ePagebreaks = IG_REC_PB_AUTO; AT_BOOL bCPBsIsApplicable = FALSE; LPCSTR lpszFormatName = "Converters.Text.Csv"; ErrCount += IG_REC_output_format_set(lpszFormatName); ErrCount += IG_REC_converter_pagebreaks_is_applicable(lpszFormatName, &bCPBsIsApplicable); if(bCPBsIsApplicable) ErrCount += IG_REC_converter_pagebreaks_get(lpszFormatName, &ePagebreaks); |
See IG_REC_converter_pagebreaks_set for formats that support this flag.
The page breaks flag can't be retrieved if the corresponding output format has not been selected with IG_REC_output_format_set at least once. In this case the function returns a non-zero value and appends IGE_REC_CONVERTER_NOT_INITIALIZED error code to the error stack.