Example #1
0
        private void btnSavePages_Click(object sender, RoutedEventArgs e)
        {
            btnConvert.IsEnabled = false;

            if (_savingPages)
            {
                btnSavePages.Content = "Canceling";
                _writer.Cancel();
                return;
            }

            _savingPages         = true;
            btnSavePages.Content = "Cancel";

            Config.BitmapConverter.Rotate = 0;
            DummyDocumentConverter converter = new DummyDocumentConverter(Config.Document, Enumerable.Range(1, Config.Document.PageCount));

            _convert(converter);
        }