Beispiel #1
0
        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="filePath">The destination path.</param>
        /// <param name="converter">The converter to use.</param>
        /// <param name="bitmapProcessor">The bitmap processor to use to process the pages.</param>
        public DocumentWriter(string filePath, IDocumentConverter converter, BitmapSourceConverter bitmapProcessor)
        {
            FilePath        = filePath;
            Converter       = converter;
            BitmapProcessor = bitmapProcessor;

            _worker = new BackgroundWorker();
            _worker.WorkerReportsProgress      = true;
            _worker.WorkerSupportsCancellation = true;

            _worker.DoWork             += new DoWorkEventHandler(WriteDocument);
            _worker.ProgressChanged    += new System.ComponentModel.ProgressChangedEventHandler(Worker_ProgressChanged);
            _worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(Worker_RunWorkerCompleted);
        }
Beispiel #2
0
        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="filePath">The destination path.</param>
        /// <param name="converter">The converter to use.</param>
        /// <param name="bitmapProcessor">The bitmap processor to use to process the pages.</param>
        public DocumentWriter(string filePath, IDocumentConverter converter, BitmapSourceConverter bitmapProcessor)
        {
            FilePath = filePath;
            Converter = converter;
            BitmapProcessor = bitmapProcessor;

            _worker = new BackgroundWorker();
            _worker.WorkerReportsProgress = true;
            _worker.WorkerSupportsCancellation = true;

            _worker.DoWork += new DoWorkEventHandler(WriteDocument);
            _worker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(Worker_ProgressChanged);
            _worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(Worker_RunWorkerCompleted);
        }
Beispiel #3
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="filePath">The destination path.</param>
 /// <param name="converter">The converter to use.</param>
 /// <param name="bitmapProcessor">The bitmap processor to use to process the pages.</param>
 public ImageSequenceWriter(string filePath, IDocumentConverter converter, BitmapSourceConverter bitmapProcessor)
     : base(filePath, converter, bitmapProcessor)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="filePath">The destination path.</param>
 /// <param name="converter">The converter to use.</param>
 /// <param name="bitmapProcessor">The bitmap processor to use to process the pages.</param>
 public PDFWriter(string filePath, IDocumentConverter converter, BitmapSourceConverter bitmapProcessor) : base(filePath, converter, bitmapProcessor)
 {
 }