Skip to content

Commit

Permalink
support multipage printing for FAX
Browse files Browse the repository at this point in the history
d2phap committed Nov 6, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 99b93d6 commit 5e392d6
Showing 2 changed files with 36 additions and 1 deletion.
32 changes: 31 additions & 1 deletion Source/.vs/ImageGlass/project-colors.json
Original file line number Diff line number Diff line change
@@ -45,7 +45,37 @@
"ProjectGuid": "0c295fb8-c6c6-4a40-9f19-05a43f353a04",
"DisplayName": "ImageGlass.ImageListView",
"ColorIndex": 7
},
"886dc568-c83e-443e-89fa-84cf420b2c68": {
"ProjectGuid": "886dc568-c83e-443e-89fa-84cf420b2c68",
"DisplayName": "ImageGlass.Services",
"ColorIndex": 8
},
"cc391e3e-9137-4857-85dc-c4cf6df37584": {
"ProjectGuid": "cc391e3e-9137-4857-85dc-c4cf6df37584",
"DisplayName": "igcmd",
"ColorIndex": 9
},
"63e3171f-d36e-4100-9c55-21d277b8530c": {
"ProjectGuid": "63e3171f-d36e-4100-9c55-21d277b8530c",
"DisplayName": "igtasks",
"ColorIndex": 10
},
"e1b466b0-8ece-4d5c-807a-600aae97bec7": {
"ProjectGuid": "e1b466b0-8ece-4d5c-807a-600aae97bec7",
"DisplayName": "igcmdWin10",
"ColorIndex": 11
},
"f5248b7e-8b93-4926-9a60-7208f759cafc": {
"ProjectGuid": "f5248b7e-8b93-4926-9a60-7208f759cafc",
"DisplayName": "Components",
"ColorIndex": 12
},
"ca86d298-03ca-4a54-a796-b3ebaf2cf841": {
"ProjectGuid": "ca86d298-03ca-4a54-a796-b3ebaf2cf841",
"DisplayName": "Utilities",
"ColorIndex": 13
}
},
"NextColorIndex": 8
"NextColorIndex": 14
}
5 changes: 5 additions & 0 deletions Source/ImageGlass/frmMain.cs
Original file line number Diff line number Diff line change
@@ -4683,6 +4683,11 @@ private void mnuMainPrint_Click(object sender, EventArgs e) {
// save image to temp file
fileToPrint = SaveTemporaryMemoryData();
}
// rename ext FAX -> TIFF to multipage printing
else if (Path.GetExtension(currentFile).ToUpperInvariant() == ".FAX") {
fileToPrint = App.ConfigDir(PathType.File, Dir.Temporary, Path.GetFileNameWithoutExtension(currentFile) + ".tiff");
File.Copy(currentFile, fileToPrint, true);
}


try {

0 comments on commit 5e392d6

Please sign in to comment.