개정판 af0bcefa
Fix: (Final Service) TextControl 회전 오류 수정(TextControl과 ArrowTextControl의 회전 로직이 달라 함수 분리)
Change-Id: Ieb3b0a13b557f964a7ca66209678dce9ebd2701f
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
122 | 122 |
return (size / scaleWidth); |
123 | 123 |
} |
124 | 124 |
|
125 |
public List<Point> GetPdfPointSystem(List<Point> point) |
|
125 |
public List<Point> GetPdfPointSystem(List<Point> points)
|
|
126 | 126 |
{ |
127 |
List<Point> dummy = new List<Point>(); |
|
128 |
foreach (var item in point) |
|
129 |
{ |
|
130 |
dummy.Add(GetPdfPointSystem(item)); |
|
131 |
} |
|
132 |
return dummy; |
|
127 |
return points.ConvertAll(x => GetPdfPointSystem(x)); |
|
133 | 128 |
} |
134 | 129 |
|
135 | 130 |
public double returnAngle(Point start, Point end) |
... | ... | |
178 | 173 |
} |
179 | 174 |
|
180 | 175 |
#region 생성자 & 소멸자 |
176 |
/// <summary> |
|
177 |
/// 주어진 _FinalPDF 데이터로 Final PDF를 생성한다. |
|
178 |
/// </summary> |
|
179 |
/// <param name="_FinalPDF"></param> |
|
181 | 180 |
public void MakeFinalPDF(object _FinalPDF) |
182 | 181 |
{ |
183 | 182 |
DOCUMENT_ITEM documentItem; |
... | ... | |
194 | 193 |
using (KCOMEntities _entity = new KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
195 | 194 |
{ |
196 | 195 |
var _properties = _entity.PROPERTIES.Where(pro => pro.PROPERTY == FinalPDF.PROJECT_NO); |
197 |
|
|
198 |
if (_properties.Count() > 0) |
|
196 |
if (_properties.Any()) |
|
199 | 197 |
{ |
200 | 198 |
if (_properties.Where(t => t.TYPE == PropertiesType.Const_TileSorcePath).Count() == 0) |
201 | 199 |
{ |
... | ... | |
252 | 250 |
} |
253 | 251 |
#endregion |
254 | 252 |
|
255 |
#region 문서 복사
|
|
253 |
#region 원본 PDF를 TempFile로 복사
|
|
256 | 254 |
try |
257 | 255 |
{ |
258 | 256 |
using (CIEntities _entity = new CIEntities(KCOMDataModel.Common.ConnectStringBuilder.ProjectCIConnectString(FinalPDF.PROJECT_NO).ToString())) |
... | ... | |
496 | 494 |
} |
497 | 495 |
|
498 | 496 |
/// <summary> |
499 |
/// PDF에 Markup 데이터를 쓴다.
|
|
497 |
/// 원본 PDF에 Markup을 생성한다.
|
|
500 | 498 |
/// </summary> |
501 | 499 |
/// <param name="finaldata"></param> |
502 | 500 |
/// <param name="testFile"></param> |
... | ... | |
862 | 860 |
case "TextControl": |
863 | 861 |
using (S_TextControl control = JsonSerializerHelper.JsonDeserialize<S_TextControl>(item)) |
864 | 862 |
{ |
865 |
DrawTextBox(control, contentByte, delimiterChars, delimiterChars2, _SetColor);
|
|
863 |
control.Draw(this, contentByte, delimiterChars, delimiterChars2, _SetColor, scaleWidth, scaleHeight);
|
|
866 | 864 |
} |
867 | 865 |
break; |
868 | 866 |
#endregion |
내보내기 Unified diff