public PDFWorker(string file,string gameTitle, PDFJobType jobType) { this.InputFilename = file; this.JobType = jobType; this.GameTitle = gameTitle; this.directoryName = System.IO.Path.GetDirectoryName(this.InputFilename); this.FileNoExt = System.IO.Path.GetFileNameWithoutExtension(this.InputFilename); ; }
/// <summary> /// Constructor used for when you need to chop booklets /// </summary> /// <param name="file"></param> /// <param name="gameTitle"></param> /// <param name="jobType"></param> public PDFWorker(string file, string gameTitle, PDFJobType jobType,bool chop1st,bool choplast) { this.InputFilename = file; this.JobType = jobType; this.GameTitle = gameTitle; this.directoryName = System.IO.Path.GetDirectoryName(this.InputFilename); this.FileNoExt = System.IO.Path.GetFileNameWithoutExtension(this.InputFilename); this.chop1st = chop1st; this.chopLast = choplast; // Build background worker object PDFBackgroundWorker.WorkerReportsProgress = true; PDFBackgroundWorker.WorkerSupportsCancellation = true; }