コード例 #1
0
        private void _pdfAdvanctionOptionsButton_Click(object sender, EventArgs e)
        {
            Properties.Settings settings = new Properties.Settings();
            int tabIndex = settings.AdvancedPdfOptionsSelectedTabIndex;

            using (AdvancedPdfDocumentOptionsDialog dlg = new AdvancedPdfDocumentOptionsDialog(_pdfOptions, (_ocrDocument != null && _ocrDocument.Pages != null) ? ((_ocrDocument.Pages.Count > 0) ? _ocrDocument.Pages.Count : 1) : 1, tabIndex))
            {
                dlg.ShowLinearized = false;
                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    settings.AdvancedPdfOptionsSelectedTabIndex = dlg.TabControl.SelectedIndex;
                    settings.Save();
                }
            }
        }
コード例 #2
0
        private void _pdfAdvanctionOptionsButton_Click(object sender, EventArgs e)
        {
            Properties.Settings settings = new Properties.Settings();
            int tabIndex = settings.AdvancedPdfOptionsSelectedTabIndex;

            _pdfOptions.ImageOverText = _pdfImageOverTextCheckBox.Checked;
            _pdfOptions.Linearized    = _pdfLinearizedCheckBox.Checked;
            using (AdvancedPdfDocumentOptionsDialog dlg = new AdvancedPdfDocumentOptionsDialog(_pdfOptions, _totalPages, tabIndex))
            {
                dlg.ShowLinearized = false;
                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    settings.AdvancedPdfOptionsSelectedTabIndex = dlg.TabControl.SelectedIndex;
                    settings.Save();
                }
            }
        }