Resolution of inconsistencies

If the operations_str happens to contain contradictory requests, such as DO_BINARIZATION and DO_GRAY_OUTPUT, resolve such conflicts as follows:

  • DO_BINARIZATION and DO_ENHANCED_BINARIZATION take precedence over DO_GRAY_OUTPUT regardless of their order in the operations string.
  • DO_SKEW_CORRECTION_PAGE and DO_SKEW_CORRECTION_ALT can coexist. If both are present, deskew to content is done if the found page gets rejected.
  • In case the same keyword or parameter name is followed by a different parameter value, such as _Do90DegreeRotation_0_Do90DegreeRotation_4, the last value is used.
  • All individual parameter values loaded from substrings beginning with _LoadInlineSetting_ are loaded in the order they are mentioned in the operations_str, so if the same parameter name is mentioned again, the last value is used.