개정판 4899d460
issue #1018 checkmark control add & image ratio fit
Change-Id: I774c680cf28b8e8cf35e459b2084dc2c8784840c
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
1065 | 1065 |
double Opacity = control.Opac; |
1066 | 1066 |
|
1067 | 1067 |
StringBuilder ApprovedImgPath = new StringBuilder(512); |
1068 |
GetPrivateProfileString("ApprovedImgPath", "URL", "(NONE)", ApprovedImgPath, 512, "C:\\ProgramData\\MARKUS\\settings.ini");
|
|
1068 |
GetPrivateProfileString("ApprovedImgPath", "URL", "(NONE)", ApprovedImgPath, 512, "C:\\ProgramData\\MARKUS\\FinalService.ini");
|
|
1069 | 1069 |
|
1070 | 1070 |
Controls_PDF.HoneyPDFLib_DrawSet_Symbol.DrawApproval(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Angle, Opacity, ApprovedImgPath.ToString()); |
1071 | 1071 |
} |
1072 | 1072 |
break; |
1073 |
case "SymControl": |
|
1074 |
using (S_SymControl control = JsonSerializerHelper.JsonDeserialize<S_SymControl>(item)) |
|
1075 |
{ |
|
1076 |
Point StartPoint = GetPdfPointSystem(control.StartPoint); |
|
1077 |
Point EndPoint = GetPdfPointSystem(control.EndPoint); |
|
1078 |
List<Point> pointSet = GetPdfPointSystem(control.PointSet); |
|
1079 |
SolidColorBrush FontColor = _SetColor; |
|
1080 |
double Angle = control.Angle; |
|
1081 |
double Opacity = control.Opac; |
|
1082 |
|
|
1083 |
StringBuilder imgpath = new StringBuilder(512); |
|
1084 |
GetPrivateProfileString("CheckmarkImgPath", "URL", "(NONE)", imgpath, 512, "C:\\ProgramData\\MARKUS\\FinalService.ini"); |
|
1085 |
|
|
1086 |
Controls_PDF.HoneyPDFLib_DrawSet_Symbol.DrawCheckMark(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Angle, Opacity, imgpath.ToString()); |
|
1087 |
} |
|
1088 |
break; |
|
1073 | 1089 |
#endregion |
1074 | 1090 |
#region Image |
1075 | 1091 |
case "ImgControl": |
... | ... | |
1123 | 1139 |
//File.Move(FinalPDFPath.FullName, @"\\192.168.0.67\finalpdf\" + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1124 | 1140 |
//FinalPDFPath = new FileInfo(@"\\192.168.0.67\finalpdf\" + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1125 | 1141 |
StringBuilder PDFMovePath = new StringBuilder(255); |
1126 |
GetPrivateProfileString("PDFMovePath", "URL", "(NONE)", PDFMovePath, 32, "C:\\ProgramData\\MARKUS\\settings.ini");
|
|
1142 |
GetPrivateProfileString("PDFMovePath", "URL", "(NONE)", PDFMovePath, 32, "C:\\ProgramData\\MARKUS\\FinalService.ini");
|
|
1127 | 1143 |
File.Move(FinalPDFPath.FullName, PDFMovePath.ToString() + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1128 | 1144 |
FinalPDFPath = new FileInfo(PDFMovePath.ToString() + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1129 | 1145 |
|
내보내기 Unified diff