コード例 #1
0
ファイル: SavePdfDialog.cs プロジェクト: sakpung/webstudy
        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();
                }
            }
        }
コード例 #2
0
ファイル: ConvertLdDialog.cs プロジェクト: sakpung/webstudy
        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();
                }
            }
        }
コード例 #3
0
        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();
                }
            }
        }
コード例 #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();
                }
            }
        }