I created a Profile which sets the CorrectSkewMode property:
[PrepareImageMode]
CorrectSkewMode = CSM_CorrectSkewByHorizontalLines | CSM_CorrectSkewByVerticalLines
[PagePreProcessingParams]
CorrectSkewMode = CSM_CorrectSkewByHorizontalLines | CSM_CorrectSkewByVerticalLines
This works just fine for the PagePreProcessingParams. But for the PrepareImageMode I get the following error:
Arguments check failed. Expected EnumValue(stringValues[i], currentvalue, CorrectSkewModeEnumConverter)
If I use only one value, e.g.
CorrectSkewMode = CSM_CorrectSkewByHorizontalLines
it works as well.
I get the error if I use the Default values from the documentation, too.
Am I misunderstanding something?
Comments
1 comment
Try to set up these properties in the profile using syntax of *.ini files:
.ini file sample:
[PrepareImageMode]
CorrectSkewMode = CSM_CorrectSkewByHorizontalLines, CSM_CorrectSkewByVerticalLines
[PagePreProcessingParams]
CorrectSkewMode = CSM_CorrectSkewByHorizontalLines, CSM_CorrectSkewByVerticalLines
If you would like to set up PrepareImageMode::CorrectSkewMode and PagePreProcessingParams::CorrectSkewMode directly in the code, use | operator.
C# code sample:
processingParams.PageProcessingParams.PagePreprocessingParams.CorrectSkewMode = (int)(FREngine.CorrectSkewModeEnum.CSM_CorrectSkewByHorizontalText | FREngine.CorrectSkewModeEnum.CSM_CorrectSkewByVerticalText);
Please sign in to leave a comment.