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 SetDocumentStructureDetectionParameters(SynthesisParamsForDocument documentSynthesisParams, SettingsMode mode)
        {
            DocumentStructureDetectionParams documentStructureDetectionParams = documentSynthesisParams.DocumentStructureDetectionParams;

            switch (mode)
            {
            case SettingsMode.None:
                break;

            case SettingsMode.LineByLine:
                documentStructureDetectionParams.ClassifySeparators          = true;
                documentStructureDetectionParams.DetectCaptions              = false;
                documentStructureDetectionParams.DetectColumns               = false;
                documentStructureDetectionParams.DetectFootnotes             = false;
                documentStructureDetectionParams.DetectHeadlines             = false;
                documentStructureDetectionParams.DetectLists                 = false;
                documentStructureDetectionParams.DetectOverflowingParagraphs = false;
                documentStructureDetectionParams.DetectRunningTitles         = false;
                documentStructureDetectionParams.DetectTableOfContents       = false;
                break;

            default:
                break;
            }
        }
        private void SetDocumentSynthesisParameters(DocumentProcessingParams processingParams, SettingsMode mode)
        {
            SynthesisParamsForDocument documentSynthesisParams = processingParams.SynthesisParamsForDocument ?? engine.CreateSynthesisParamsForDocument();

            switch (mode)
            {
            case SettingsMode.None:
                documentSynthesisParams.DetectFontFormatting    = true;
                documentSynthesisParams.DetectDocumentStructure = true;
                break;

            case SettingsMode.LineByLine:
                documentSynthesisParams.DetectFontFormatting    = true;
                documentSynthesisParams.DetectDocumentStructure = false;
                break;

            default:
                break;
            }

            SetDocumentStructureDetectionParameters(documentSynthesisParams, mode);
            SetFontFormatDetectionParameters(documentSynthesisParams, mode);
        }