Exemple #1
0
        private void _pdfAdvancedOptionsButton_Click(object sender, EventArgs e)
        {
            Properties.Settings settings = new Properties.Settings();
            int tabIndex = settings.AdvancedPdfOptionsSelectedTabIndex;

            using (AdvancedPdfDocumentOptionsDialog dlg = new AdvancedPdfDocumentOptionsDialog(_pdfOptions, _totalPages, tabIndex))
            {
                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    settings.AdvancedPdfOptionsSelectedTabIndex = dlg.TabControl.SelectedIndex;
                    settings.Save();
                }
            }
        }
Exemple #2
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();
                }
            }
        }
        private void _pdfAdvanctionOptionsButton_Click(object sender, EventArgs e)
        {
            Properties.Settings settings = new Properties.Settings();

            using (AdvancedPdfDocumentOptionsDialog dlg = new AdvancedPdfDocumentOptionsDialog(_pdfOptions, 1, settings.AdvancedPdfOptionsSelectedTabIndex))
            {
                dlg.ShowLinearized = false;

                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    UpdateDocumentWriterOptions();
                    settings.AdvancedPdfOptionsSelectedTabIndex = dlg.TabControl.SelectedIndex;
                    settings.Save();
                }
            }
        }
Exemple #4
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();
                }
            }
        }