private void SetFontFormatDetectionParameters(SynthesisParamsForDocument documentSynthesisParams, SettingsMode mode)
        {
            FontFormattingDetectionParams fontFormattingDetectionParams = documentSynthesisParams.FontFormattingDetectionParams;

            switch (mode)
            {
            case SettingsMode.None:
                fontFormattingDetectionParams.DetectBold               = true;
                fontFormattingDetectionParams.DetectFontFamily         = true;
                fontFormattingDetectionParams.DetectItalic             = true;
                fontFormattingDetectionParams.DetectFontSize           = true;
                fontFormattingDetectionParams.DetectUnderlineStrikeout = true;
                break;

            case SettingsMode.LineByLine:
                fontFormattingDetectionParams.DetectBold               = true;
                fontFormattingDetectionParams.DetectFontFamily         = true;
                fontFormattingDetectionParams.DetectItalic             = true;
                fontFormattingDetectionParams.DetectFontSize           = true;
                fontFormattingDetectionParams.DetectUnderlineStrikeout = true;
                break;

            default:
                break;
            }
        }
        private void SetPageSynthesisParameters(PageProcessingParams pageProcessingParams)
        {
            SynthesisParamsForPage pageSynthesisParams = pageProcessingParams.SynthesisParamsForPage ?? engine.CreateSynthesisParamsForPage();

            pageProcessingParams.SynthesisParamsForPage = pageSynthesisParams;

            FontFormattingDetectionParams fontFormattingDetectionParams = pageSynthesisParams.FontFormattingDetectionParams;

            fontFormattingDetectionParams.DetectBold               = true;
            fontFormattingDetectionParams.DetectFontFamily         = true;
            fontFormattingDetectionParams.DetectItalic             = true;
            fontFormattingDetectionParams.DetectFontSize           = true;
            fontFormattingDetectionParams.DetectUnderlineStrikeout = true;
        }