From c4eac58a003caa0fdd74cc56ad079eaf77dbf6d6 Mon Sep 17 00:00:00 2001 From: tomse <1444539+tomse@users.noreply.github.com> Date: Tue, 26 Dec 2023 15:08:04 +0100 Subject: [PATCH] add cleaning buttons, paste project path --- .../.vs/PDFWorkflowManager/v16/.suo | Bin 97792 -> 137216 bytes .../PDFWorkflowManager/MainForm.Designer.cs | 57 +++- .../PDFWorkflowManager/MainForm.cs | 148 ++++++++--- PDFWorkflowManager/Setup/Setup.vdproj | 245 ++++++++++++------ 4 files changed, 325 insertions(+), 125 deletions(-) diff --git a/PDFWorkflowManager/.vs/PDFWorkflowManager/v16/.suo b/PDFWorkflowManager/.vs/PDFWorkflowManager/v16/.suo index 230858e655a2246df8e2d26e0035f809f8e80345..83828087aeb42abddbe1768cae5b75cf073ec201 100644 GIT binary patch delta 12222 zcmeI23tUv!oyYJ0GJ`w@WHP)T2^dsF24|QD15q4cpn@n5F}_e77*LRxFuo9EOk?UcOrir7HT9c5(Hjif2-A!w^>28x|yPI}ns;O}!QQ6-a7)2Qp(~n8* ze!P6XoOA!@dC&Qu|M{PL$8kySc-C)w$`l_#5Jcd!6 z99#rEoj3Hq!|^bLn&CK4yLULAiEx@AEOQso<0chM2U9>g;F&#FBJN{{WlmNpKD9SA$YCeQ^Oz$rEa zJ7z1J`Ltx={^qBJ*UWW*hkW8n|AZUQv~VH6#zDqM%`?J$MkawI5CQywFW`B39zObM zfX~zqx=SPcxO&_J*x8cMuJ;k~=*oMDkDT}b+)o6&CLO}zc@VV2GA`#Ap9UV95c265 zKO#L6@nGNwc-?#&P6M7lh$~@kcd3f@v7n3v+QpDB0To~=SOzM=a$p5jpc>df4Orh@ zI-9*K_hYh>$h6JS;0M4r!GnN5I_KMnKLj2HTfskoZQv1NSJK177@|9XC%ZdzQNRJZ z^))&}a)Si4E}nl9SO)@X|r zd~JHx7k@tA9T3O_*Fc1?_@xKn-brMDnTulmAu>f7@5hLy=TzXaeh&e^GK5_Gz+WEX83?uRQe0yNA&b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DFWorkflowManager/PDFWorkflowManager/MainForm.Designer.cs b/PDFWorkflowManager/PDFWorkflowManager/MainForm.Designer.cs index a78b271..2064afb 100644 --- a/PDFWorkflowManager/PDFWorkflowManager/MainForm.Designer.cs +++ b/PDFWorkflowManager/PDFWorkflowManager/MainForm.Designer.cs @@ -99,6 +99,7 @@ namespace PDFWorkflowManager this.btnMakePDF = new System.Windows.Forms.Button(); this.cmbBanner = new System.Windows.Forms.ComboBox(); this.panelSort = new System.Windows.Forms.Panel(); + this.radioSortFlatBed = new System.Windows.Forms.RadioButton(); this.radioSortMagazine = new System.Windows.Forms.RadioButton(); this.btnConvertToPDF = new System.Windows.Forms.Button(); this.radioSortNormal = new System.Windows.Forms.RadioButton(); @@ -115,6 +116,8 @@ namespace PDFWorkflowManager this.label20 = new System.Windows.Forms.Label(); this.label21 = new System.Windows.Forms.Label(); this.txtPDFKeywords = new System.Windows.Forms.TextBox(); + this.btnDisposePics = new System.Windows.Forms.Button(); + this.btnDeleteTemp = new System.Windows.Forms.Button(); this.menuStrip1.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); @@ -766,7 +769,7 @@ namespace PDFWorkflowManager this.groupExport.Controls.Add(this.panelBanner); this.groupExport.Controls.Add(this.panelSort); this.groupExport.Enabled = false; - this.groupExport.Location = new System.Drawing.Point(12, 933); + this.groupExport.Location = new System.Drawing.Point(12, 882); this.groupExport.Name = "groupExport"; this.groupExport.Size = new System.Drawing.Size(435, 82); this.groupExport.TabIndex = 54; @@ -808,6 +811,7 @@ namespace PDFWorkflowManager // // panelSort // + this.panelSort.Controls.Add(this.radioSortFlatBed); this.panelSort.Controls.Add(this.radioSortMagazine); this.panelSort.Controls.Add(this.btnConvertToPDF); this.panelSort.Controls.Add(this.radioSortNormal); @@ -817,21 +821,33 @@ namespace PDFWorkflowManager this.panelSort.Size = new System.Drawing.Size(348, 26); this.panelSort.TabIndex = 55; // + // radioSortFlatBed + // + this.radioSortFlatBed.AutoSize = true; + this.radioSortFlatBed.Location = new System.Drawing.Point(138, 3); + this.radioSortFlatBed.Name = "radioSortFlatBed"; + this.radioSortFlatBed.Size = new System.Drawing.Size(109, 17); + this.radioSortFlatBed.TabIndex = 49; + this.radioSortFlatBed.TabStop = true; + this.radioSortFlatBed.Text = "Last, First, 2,3,4,5"; + this.radioSortFlatBed.UseVisualStyleBackColor = true; + this.radioSortFlatBed.CheckedChanged += new System.EventHandler(this.radioSortFlatBed_CheckedChanged); + // // radioSortMagazine // this.radioSortMagazine.AutoSize = true; - this.radioSortMagazine.Location = new System.Drawing.Point(141, 3); + this.radioSortMagazine.Location = new System.Drawing.Point(74, 3); this.radioSortMagazine.Name = "radioSortMagazine"; - this.radioSortMagazine.Size = new System.Drawing.Size(87, 17); + this.radioSortMagazine.Size = new System.Drawing.Size(58, 17); this.radioSortMagazine.TabIndex = 47; - this.radioSortMagazine.Text = "4,1,2,3 Order"; + this.radioSortMagazine.Text = "4,1,2,3"; this.radioSortMagazine.UseVisualStyleBackColor = true; this.radioSortMagazine.CheckedChanged += new System.EventHandler(this.radioSortMagazine_CheckedChanged); // // btnConvertToPDF // this.btnConvertToPDF.Enabled = false; - this.btnConvertToPDF.Location = new System.Drawing.Point(263, 0); + this.btnConvertToPDF.Location = new System.Drawing.Point(262, 0); this.btnConvertToPDF.Name = "btnConvertToPDF"; this.btnConvertToPDF.Size = new System.Drawing.Size(82, 23); this.btnConvertToPDF.TabIndex = 48; @@ -843,12 +859,12 @@ namespace PDFWorkflowManager // this.radioSortNormal.AutoSize = true; this.radioSortNormal.Checked = true; - this.radioSortNormal.Location = new System.Drawing.Point(32, 3); + this.radioSortNormal.Location = new System.Drawing.Point(10, 3); this.radioSortNormal.Name = "radioSortNormal"; - this.radioSortNormal.Size = new System.Drawing.Size(87, 17); + this.radioSortNormal.Size = new System.Drawing.Size(58, 17); this.radioSortNormal.TabIndex = 46; this.radioSortNormal.TabStop = true; - this.radioSortNormal.Text = "Normal Order"; + this.radioSortNormal.Text = "Normal"; this.radioSortNormal.UseVisualStyleBackColor = true; this.radioSortNormal.CheckedChanged += new System.EventHandler(this.radioSortNormal_CheckedChanged); // @@ -981,11 +997,33 @@ namespace PDFWorkflowManager this.txtPDFKeywords.Size = new System.Drawing.Size(205, 20); this.txtPDFKeywords.TabIndex = 32; // + // btnDisposePics + // + this.btnDisposePics.Location = new System.Drawing.Point(16, 970); + this.btnDisposePics.Name = "btnDisposePics"; + this.btnDisposePics.Size = new System.Drawing.Size(83, 35); + this.btnDisposePics.TabIndex = 56; + this.btnDisposePics.Text = "Dispose Pics"; + this.btnDisposePics.UseVisualStyleBackColor = true; + this.btnDisposePics.Click += new System.EventHandler(this.btnDisposePics_Click); + // + // btnDeleteTemp + // + this.btnDeleteTemp.Location = new System.Drawing.Point(105, 970); + this.btnDeleteTemp.Name = "btnDeleteTemp"; + this.btnDeleteTemp.Size = new System.Drawing.Size(75, 35); + this.btnDeleteTemp.TabIndex = 57; + this.btnDeleteTemp.Text = "Clean Temp"; + this.btnDeleteTemp.UseVisualStyleBackColor = true; + this.btnDeleteTemp.Click += new System.EventHandler(this.button1_Click_1); + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(983, 1040); + this.Controls.Add(this.btnDeleteTemp); + this.Controls.Add(this.btnDisposePics); this.Controls.Add(this.groupPDF); this.Controls.Add(this.groupBox7); this.Controls.Add(this.groupExport); @@ -1119,6 +1157,9 @@ namespace PDFWorkflowManager private System.Windows.Forms.Label label20; private System.Windows.Forms.Label label21; private System.Windows.Forms.TextBox txtPDFKeywords; + private System.Windows.Forms.RadioButton radioSortFlatBed; + private System.Windows.Forms.Button btnDisposePics; + private System.Windows.Forms.Button btnDeleteTemp; } } diff --git a/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs b/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs index 6e873e4..fb329c9 100644 --- a/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs +++ b/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs @@ -239,7 +239,15 @@ namespace PDFWorkflowManager private void btnProjectDir_Click(object sender, EventArgs e) { CommonOpenFileDialog dialog = new CommonOpenFileDialog(); - dialog.RestoreDirectory = true; + + if (Directory.Exists(txtProjectDir.Text)) + { + dialog.InitialDirectory = @txtProjectDir.Text; + } + else + { + dialog.RestoreDirectory = true; + } dialog.IsFolderPicker = true; if (dialog.ShowDialog() == CommonFileDialogResult.Ok) { @@ -261,10 +269,10 @@ namespace PDFWorkflowManager } catch { } - + txtProjectDir.ReadOnly = true; + checkSimplex.Enabled = true; } - txtProjectDir.ReadOnly = true; - checkSimplex.Enabled = true; + if (!Directory.Exists(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir))) { @@ -273,9 +281,8 @@ namespace PDFWorkflowManager } else if (Directory.GetFiles(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir), "*.tif").Length == 0 && Directory.GetFiles(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir), "*.tiff").Length == 0) { - MessageBox.Show("Origs files not found.", "Error no files found.", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show("Origs files not found.", "Error no TIF files found.", MessageBoxButtons.OK, MessageBoxIcon.Error); return; - } if (Directory.Exists(Path.Combine(txtProjectDir.Text, origsDir)) && !Directory.Exists(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.WorkDir))) @@ -559,7 +566,7 @@ namespace PDFWorkflowManager ); } - if (sortNormal == false) + if (radioSortMagazine.Checked == true) { string tempSortDir = Path.Combine(tempDir, "sort"); ; Directory.CreateDirectory(tempSortDir); @@ -585,6 +592,26 @@ namespace PDFWorkflowManager Thread.Sleep(1000); sourceDir = tempSortDir; } + else if (radioSortFlatBed.Checked == true) + { + string tempSortDir = Path.Combine(tempDir, "sort"); ; + Directory.CreateDirectory(tempSortDir); + int downCount = sourceFileCount; + int upCount = 1; + + for (int i = 1; i < sourceFileCount;) + { + File.Copy(strFiles[i], Path.Combine(tempSortDir, upCount.ToString().PadLeft(4, '0') + ".tif"), true); + i++; + upCount++; + } + File.Copy(strFiles[0], Path.Combine(tempSortDir, upCount.ToString().PadLeft(4, '0') + ".tif"), true); + + strFiles = Directory.GetFiles(tempSortDir, "*.tif"); + Thread.Sleep(1000); + sourceDir = tempSortDir; + } + ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.UseShellExecute = false; @@ -685,6 +712,11 @@ namespace PDFWorkflowManager private void btnMakePDF_Click(object sender, EventArgs e) { + if (!File.Exists(txtProjectDir.Text + @"\" + txtFileName.Text + ".txt")) + { + saveMetadata(); + } + try { toolStripProgressBar1.Maximum = 1; @@ -836,6 +868,40 @@ namespace PDFWorkflowManager } private void btnSaveMeta_Click(object sender, EventArgs e) + { + saveMetadata(); + } + + private void updateFileName(object sender, EventArgs e) + { + string fileName = ""; + string company = txtPublisher.Text.Replace(" ", ""); + string title = txtTitle.Text.Replace(" ", "_"); + btnSaveMeta.Enabled = true; + + if (company.Length > 0) + { + fileName += company + "_"; + } + + fileName += title; + var selectedItem = (dynamic)cmbLanguage.SelectedItem; + var selectedValue = selectedItem.Value; + + if (selectedValue != "eng") + { + fileName += "_(" + languageCodes[cmbLanguage.Text] + ")" + $"[{cmbResolution.SelectedItem}dpi]"; + } + else + { + fileName += $"_[{cmbResolution.SelectedItem}dpi][ocr]"; + } + + txtFileName.Text = fileName; + } + + // Save Metadata + private void saveMetadata() { string selectedLanguage = "eng"; if (checkLanguage.Checked == true) @@ -872,33 +938,6 @@ namespace PDFWorkflowManager File.WriteAllText(txtProjectDir.Text + @"\" + txtFileName.Text + ".txt", textFileContents); } - private void updateFileName(object sender, EventArgs e) - { - string fileName = ""; - string company = txtPublisher.Text.Replace(" ", ""); - string title = txtTitle.Text.Replace(" ", "_"); - btnSaveMeta.Enabled = true; - - if (company.Length > 0) - { - fileName += company + "_"; - } - - fileName += title; - var selectedItem = (dynamic)cmbLanguage.SelectedItem; - var selectedValue = selectedItem.Value; - - if (selectedValue != "eng") - { - fileName += "_(" + languageCodes[cmbLanguage.Text] + ")" + $"[{cmbResolution.SelectedItem}dpi]"; - } - else - { - fileName += $"_[{cmbResolution.SelectedItem}dpi][ocr]"; - } - - txtFileName.Text = fileName; - } // Grab all the exported textfiles and combine them to one private void textToOcrFile(string strOutputDir) @@ -964,6 +1003,18 @@ namespace PDFWorkflowManager } } + private void radioSortFlatBed_CheckedChanged(object sender, EventArgs e) + { + sortNormal = false; + + string[] strFiles = Directory.GetFiles(workOutDir, "*.tif"); + + if (File.Exists(strFiles[1])) + { + pictureBox2.Image = new Bitmap(strFiles[1]); + } + } + private static string GetMD5(string file) { using (var md5 = MD5.Create()) @@ -1057,7 +1108,7 @@ namespace PDFWorkflowManager private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { - MessageBox.Show("PDF Workflow Manager v0.9 \r\n\r\nCopyright (c) 2023 https://retro-commodore.eu", "Version", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show("PDF Workflow Manager v0.9.1 \r\n\r\nCopyright (c) 2023-2024 https://retro-commodore.eu", "Version", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void button1_Click(object sender, EventArgs e) @@ -1065,5 +1116,32 @@ namespace PDFWorkflowManager //GalleryForm sf = new GalleryForm(workOutDir); //sf.ShowDialog(); } + + + + private void btnDisposePics_Click(object sender, EventArgs e) + { + // Clear up pictures + try + { + if (pictureBox1.Image != null) + { + pictureBox1.Image.Dispose(); + pictureBox1.Image = null; + } + if (pictureBox2.Image != null) + { + pictureBox2.Image.Dispose(); + pictureBox2.Image = null; + } + } + catch + { } + } + + private void button1_Click_1(object sender, EventArgs e) + { + Directory.Delete(tempDir, true); + } } } diff --git a/PDFWorkflowManager/Setup/Setup.vdproj b/PDFWorkflowManager/Setup/Setup.vdproj index aa990cc..f88a1a9 100644 --- a/PDFWorkflowManager/Setup/Setup.vdproj +++ b/PDFWorkflowManager/Setup/Setup.vdproj @@ -15,8 +15,8 @@ { "Entry" { - "MsmKey" = "8:_3472EF2C777A4708AABACAC73E7690C0" - "OwnerKey" = "8:_UNDEFINED" + "MsmKey" = "8:_2EF6EAE369E94D5199E33EEB38E8F205" + "OwnerKey" = "8:_8578EF077D4242899B4A4FD7A981783D" "MsmSig" = "8:_UNDEFINED" } "Entry" @@ -27,13 +27,19 @@ } "Entry" { - "MsmKey" = "8:_6D24E18D7446AED5945ECB456B697EDB" + "MsmKey" = "8:_6AE9055BED5317C2FAF5DAD1D035790E" "OwnerKey" = "8:_8578EF077D4242899B4A4FD7A981783D" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_79658802D5784C529A6A3ECE54F77D2F" + "MsmKey" = "8:_6F8C803E8B32A8064F2DE76260AAA479" + "OwnerKey" = "8:_8578EF077D4242899B4A4FD7A981783D" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_7BEDCA7988F8415BA0D22C263B26FD55" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } @@ -51,19 +57,25 @@ } "Entry" { - "MsmKey" = "8:_92B5C6726158E3F69ED264F0E9D5F2B7" + "MsmKey" = "8:_A9BC58946AC0F6A3BBB5085573648D9B" + "OwnerKey" = "8:_6AE9055BED5317C2FAF5DAD1D035790E" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_A9BC58946AC0F6A3BBB5085573648D9B" + "OwnerKey" = "8:_2EF6EAE369E94D5199E33EEB38E8F205" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_A9BC58946AC0F6A3BBB5085573648D9B" "OwnerKey" = "8:_8578EF077D4242899B4A4FD7A981783D" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_9F1B9310B109D0DBECFEC805311CEA3F" - "OwnerKey" = "8:_FE7909460459457684AE94C947F9B9D7" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_9F1B9310B109D0DBECFEC805311CEA3F" + "MsmKey" = "8:_BB0FA39A7945BEFBE61386483941BF5F" "OwnerKey" = "8:_8578EF077D4242899B4A4FD7A981783D" "MsmSig" = "8:_UNDEFINED" } @@ -76,13 +88,13 @@ "Entry" { "MsmKey" = "8:_C3CD737D2114414D1C963372A8E54C3B" - "OwnerKey" = "8:_9F1B9310B109D0DBECFEC805311CEA3F" + "OwnerKey" = "8:_A9BC58946AC0F6A3BBB5085573648D9B" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_C3CD737D2114414D1C963372A8E54C3B" - "OwnerKey" = "8:_FE7909460459457684AE94C947F9B9D7" + "OwnerKey" = "8:_6AE9055BED5317C2FAF5DAD1D035790E" "MsmSig" = "8:_UNDEFINED" } "Entry" @@ -105,24 +117,18 @@ } "Entry" { + "MsmKey" = "8:_DF1B4EE119B14F4A86F0AEBA62A47D37" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { "MsmKey" = "8:_E7D1B68B5A782B08D6A1396D1B16047E" "OwnerKey" = "8:_C3CD737D2114414D1C963372A8E54C3B" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_FE7909460459457684AE94C947F9B9D7" - "OwnerKey" = "8:_8578EF077D4242899B4A4FD7A981783D" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_E7D1B68B5A782B08D6A1396D1B16047E" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_UNDEFINED" "OwnerKey" = "8:_8578EF077D4242899B4A4FD7A981783D" "MsmSig" = "8:_UNDEFINED" @@ -130,13 +136,19 @@ "Entry" { "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_92B5C6726158E3F69ED264F0E9D5F2B7" + "OwnerKey" = "8:_BB0FA39A7945BEFBE61386483941BF5F" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_6D24E18D7446AED5945ECB456B697EDB" + "OwnerKey" = "8:_6F8C803E8B32A8064F2DE76260AAA479" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_2EF6EAE369E94D5199E33EEB38E8F205" "MsmSig" = "8:_UNDEFINED" } "Entry" @@ -169,6 +181,12 @@ "OwnerKey" = "8:_D1E22E2C3BCABC9CF4F5D5C66B35EEB7" "MsmSig" = "8:_UNDEFINED" } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_E7D1B68B5A782B08D6A1396D1B16047E" + "MsmSig" = "8:_UNDEFINED" + } } "Configurations" { @@ -187,6 +205,22 @@ "PrivateKeyFile" = "8:" "TimeStampServer" = "8:" "InstallerBootstrapper" = "3:2" + "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}" + { + "Enabled" = "11:TRUE" + "PromptEnabled" = "11:TRUE" + "PrerequisitesLocation" = "2:1" + "Url" = "8:" + "ComponentsUrl" = "8:" + "Items" + { + "{EDC2488A-8267-493A-A98E-7D9C3B36CDF3}:.NETFramework,Version=v4.7.2" + { + "Name" = "8:Microsoft .NET Framework 4.7.2 (x86 and x64)" + "ProductCode" = "8:.NETFramework,Version=v4.7.2" + } + } + } } "Release" { @@ -203,6 +237,22 @@ "PrivateKeyFile" = "8:" "TimeStampServer" = "8:" "InstallerBootstrapper" = "3:2" + "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}" + { + "Enabled" = "11:TRUE" + "PromptEnabled" = "11:TRUE" + "PrerequisitesLocation" = "2:1" + "Url" = "8:" + "ComponentsUrl" = "8:" + "Items" + { + "{EDC2488A-8267-493A-A98E-7D9C3B36CDF3}:.NETFramework,Version=v4.7.2" + { + "Name" = "8:Microsoft .NET Framework 4.7.2 (x86 and x64)" + "ProductCode" = "8:.NETFramework,Version=v4.7.2" + } + } + } } } "Deployable" @@ -232,10 +282,21 @@ } "File" { - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_3472EF2C777A4708AABACAC73E7690C0" + "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_2EF6EAE369E94D5199E33EEB38E8F205" { - "SourcePath" = "8:..\\MakeManual\\banner_a4.pdf" - "TargetName" = "8:banner_a4.pdf" + "AssemblyRegister" = "3:1" + "AssemblyIsInGAC" = "11:FALSE" + "AssemblyAsmDisplayName" = "8:Magick.NET.SystemDrawing, Version=6.1.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL" + "ScatterAssemblies" + { + "_2EF6EAE369E94D5199E33EEB38E8F205" + { + "Name" = "8:Magick.NET.SystemDrawing.dll" + "Attributes" = "3:512" + } + } + "SourcePath" = "8:Magick.NET.SystemDrawing.dll" + "TargetName" = "8:" "Tag" = "8:" "Folder" = "8:_57C38B4AD77E4684A6778961737DF789" "Condition" = "8:" @@ -249,7 +310,7 @@ "PackageAs" = "3:1" "Register" = "3:1" "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" + "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_5328C97D3C1B713FC7761ABD2F52AC71" @@ -283,14 +344,45 @@ "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_6D24E18D7446AED5945ECB456B697EDB" + "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_6AE9055BED5317C2FAF5DAD1D035790E" + { + "AssemblyRegister" = "3:1" + "AssemblyIsInGAC" = "11:FALSE" + "AssemblyAsmDisplayName" = "8:Magick.NET-Q8-AnyCPU, Version=12.3.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL" + "ScatterAssemblies" + { + "_6AE9055BED5317C2FAF5DAD1D035790E" + { + "Name" = "8:Magick.NET-Q8-AnyCPU.dll" + "Attributes" = "3:512" + } + } + "SourcePath" = "8:Magick.NET-Q8-AnyCPU.dll" + "TargetName" = "8:" + "Tag" = "8:" + "Folder" = "8:_57C38B4AD77E4684A6778961737DF789" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:TRUE" + "IsolateTo" = "8:" + } + "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_6F8C803E8B32A8064F2DE76260AAA479" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" "AssemblyAsmDisplayName" = "8:Microsoft.WindowsAPICodePack, Version=1.1.2.0, Culture=neutral, processorArchitecture=MSIL" "ScatterAssemblies" { - "_6D24E18D7446AED5945ECB456B697EDB" + "_6F8C803E8B32A8064F2DE76260AAA479" { "Name" = "8:Microsoft.WindowsAPICodePack.dll" "Attributes" = "3:512" @@ -314,9 +406,9 @@ "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_79658802D5784C529A6A3ECE54F77D2F" + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_7BEDCA7988F8415BA0D22C263B26FD55" { - "SourcePath" = "8:..\\MakeManual\\banner_a5.pdf" + "SourcePath" = "8:..\\PDFWorkflowManager\\banner_a5.pdf" "TargetName" = "8:banner_a5.pdf" "Tag" = "8:" "Folder" = "8:_57C38B4AD77E4684A6778961737DF789" @@ -365,20 +457,20 @@ "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_92B5C6726158E3F69ED264F0E9D5F2B7" + "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_A9BC58946AC0F6A3BBB5085573648D9B" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.WindowsAPICodePack.Shell, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:Magick.NET.Core, Version=12.3.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL" "ScatterAssemblies" { - "_92B5C6726158E3F69ED264F0E9D5F2B7" + "_A9BC58946AC0F6A3BBB5085573648D9B" { - "Name" = "8:Microsoft.WindowsAPICodePack.Shell.dll" + "Name" = "8:Magick.NET.Core.dll" "Attributes" = "3:512" } } - "SourcePath" = "8:Microsoft.WindowsAPICodePack.Shell.dll" + "SourcePath" = "8:Magick.NET.Core.dll" "TargetName" = "8:" "Tag" = "8:" "Folder" = "8:_57C38B4AD77E4684A6778961737DF789" @@ -396,20 +488,20 @@ "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_9F1B9310B109D0DBECFEC805311CEA3F" + "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_BB0FA39A7945BEFBE61386483941BF5F" { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Magick.NET.Core, Version=12.3.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:Microsoft.WindowsAPICodePack.Shell, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL" "ScatterAssemblies" { - "_9F1B9310B109D0DBECFEC805311CEA3F" + "_BB0FA39A7945BEFBE61386483941BF5F" { - "Name" = "8:Magick.NET.Core.dll" + "Name" = "8:Microsoft.WindowsAPICodePack.Shell.dll" "Attributes" = "3:512" } } - "SourcePath" = "8:Magick.NET.Core.dll" + "SourcePath" = "8:Microsoft.WindowsAPICodePack.Shell.dll" "TargetName" = "8:" "Tag" = "8:" "Folder" = "8:_57C38B4AD77E4684A6778961737DF789" @@ -520,6 +612,26 @@ "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DF1B4EE119B14F4A86F0AEBA62A47D37" + { + "SourcePath" = "8:..\\PDFWorkflowManager\\banner_a4.pdf" + "TargetName" = "8:banner_a4.pdf" + "Tag" = "8:" + "Folder" = "8:_57C38B4AD77E4684A6778961737DF789" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_E7D1B68B5A782B08D6A1396D1B16047E" { "AssemblyRegister" = "3:1" @@ -551,37 +663,6 @@ "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_FE7909460459457684AE94C947F9B9D7" - { - "AssemblyRegister" = "3:1" - "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Magick.NET-Q8-AnyCPU, Version=12.3.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL" - "ScatterAssemblies" - { - "_FE7909460459457684AE94C947F9B9D7" - { - "Name" = "8:Magick.NET-Q8-AnyCPU.dll" - "Attributes" = "3:512" - } - } - "SourcePath" = "8:Magick.NET-Q8-AnyCPU.dll" - "TargetName" = "8:" - "Tag" = "8:" - "Folder" = "8:_57C38B4AD77E4684A6778961737DF789" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:TRUE" - "IsolateTo" = "8:" - } } "FileType" { @@ -639,7 +720,7 @@ "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:Setup" "ProductCode" = "8:{4A4EB923-83D7-4CFE-99EA-3967C37DEE55}" - "PackageCode" = "8:{52E887EC-4AD8-4495-A6C5-3340A67B2CC3}" + "PackageCode" = "8:{827B80A2-559B-4B15-ADF2-F12C8E3E57AF}" "UpgradeCode" = "8:{E8BFFB6D-3BA8-4AD3-B0EE-C2D0347636B7}" "AspNetVersion" = "8:4.0.30319.0" "RestartWWWService" = "11:FALSE" @@ -647,7 +728,7 @@ "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" "ProductVersion" = "8:1.0.0" - "Manufacturer" = "8:Default Company Name" + "Manufacturer" = "8:Retro Commodore" "ARPHELPTELEPHONE" = "8:" "ARPHELPLINK" = "8:" "Title" = "8:Setup" @@ -761,7 +842,7 @@ { "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_C745BC127BA643E8BEB334956F57D7F5" { - "Name" = "8:RCEU Make Manual" + "Name" = "8:PDF Workflow Manager" "Arguments" = "8:" "Description" = "8:" "ShowCmd" = "3:1" @@ -775,7 +856,7 @@ } "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_FA138F932CA54925A57C38226A401A25" { - "Name" = "8:RCEU Make Manual" + "Name" = "8:PDF Workflow Manager" "Arguments" = "8:" "Description" = "8:" "ShowCmd" = "3:1" @@ -1188,7 +1269,7 @@ { "{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8578EF077D4242899B4A4FD7A981783D" { - "SourcePath" = "8:..\\MakeManual\\obj\\Debug\\MakeManual.exe" + "SourcePath" = "8:..\\PDFWorkflowManager\\obj\\x64\\Release\\PDF Workflow Manager.exe" "TargetName" = "8:" "Tag" = "8:" "Folder" = "8:_57C38B4AD77E4684A6778961737DF789"