프로젝트

일반

사용자정보

개정판 064efb98

ID064efb98f3733578df815c79c06681ba6955935f
상위 748afa9f
하위 d62c0439

백흠경이(가) 5년 이상 전에 추가함

issue #937: fixed to count numbers of multi line text

Change-Id: I3668b013640d2c3d5c1567ba367285d60a1e83cb

차이점 보기:

FinalService/KCOM_FinalService/MarkupToPDF/Controls_PDF/HoneyPDFLib_DrawSet_DrawString.cs
51 51
            return itextFont;
52 52
        }
53 53

  
54
        /// <summary>
55
        /// draw string
56
        /// </summary>
57
        /// <param name="sp"></param>
58
        /// <param name="ep"></param>
59
        /// <param name="lineSize"></param>
60
        /// <param name="contentByte"></param>
61
        /// <param name="color"></param>
62
        /// <param name="PaintStyle"></param>
63
        /// <param name="FontSize"></param>
64
        /// <param name="fontFamilly"></param>
65
        /// <param name="fontstyle"></param>
66
        /// <param name="fontweight"></param>
67
        /// <param name="isUnderline"></param>
68
        /// <param name="text"></param>
69
        /// <param name="size"></param>
70
        /// <param name="opac"></param>
71
        /// <param name="Angle"></param>
54 72
        public static void DrawString(Point sp, Point ep, double lineSize, iTextSharp.text.pdf.PdfContentByte contentByte, SolidColorBrush color, PaintSet PaintStyle, double FontSize,
55 73
                                      FontFamily fontFamilly, FontStyle fontstyle, FontWeight fontweight, TextDecorationCollection isUnderline,
56 74
                                      string text, System.Drawing.SizeF size, double opac, double Angle)
......
134 152
                text = text.Remove(0, 1);
135 153
            }
136 154

  
137
            string[] tokens = text.Split(Environment.NewLine.ToArray(), StringSplitOptions.RemoveEmptyEntries);
155
            string[] tokens = text.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
138 156
            ct.Canvas.Transform(mat);
139 157
            ct.Canvas.SetGState(gs3);
140 158
            ct.SetText(new Phrase(new Chunk(text, itextFont)));
......
162 180
            contentByte.RestoreState();
163 181
        }
164 182

  
183
        /// <summary>
184
        /// draw arrow string
185
        /// </summary>
186
        /// <param name="sp"></param>
187
        /// <param name="ep"></param>
188
        /// <param name="ptHead"></param>
189
        /// <param name="ptMid"></param>
190
        /// <param name="lineSize"></param>
191
        /// <param name="contentByte"></param>
192
        /// <param name="color"></param>
193
        /// <param name="PaintStyle"></param>
194
        /// <param name="FontSize"></param>
195
        /// <param name="isHighlight"></param>
196
        /// <param name="fontFamilly"></param>
197
        /// <param name="fontstyle"></param>
198
        /// <param name="fontweight"></param>
199
        /// <param name="isUnderline"></param>
200
        /// <param name="text"></param>
201
        /// <param name="size"></param>
202
        /// <param name="opac"></param>
203
        /// <param name="Angle"></param>
165 204
        public static void DrawString_ArrowText(Point sp, Point ep, Point ptHead, Point ptMid, 
166 205
            double lineSize, iTextSharp.text.pdf.PdfContentByte contentByte, SolidColorBrush color, PaintSet PaintStyle, double FontSize,
167 206
                                   bool isHighlight, FontFamily fontFamilly, FontStyle fontstyle, FontWeight fontweight, TextDecorationCollection isUnderline,
......
245 284
                text = text.Remove(0, 1);
246 285
            }
247 286

  
248
            string[] tokens = text.Split(Environment.NewLine.ToArray(), StringSplitOptions.RemoveEmptyEntries);
287
            string[] tokens = text.Split(new[]{Environment.NewLine}, StringSplitOptions.None);
249 288
            ct.Canvas.Transform(mat);
250 289
            ct.Canvas.SetGState(gs3);
251 290
            ct.SetText(new Phrase(new Chunk(text, itextFont)));
MarkupToPDF/Controls/Text/ArrowTextControl.cs
1144 1144
            connectorSMGeometry.StartPoint = this.StartPoint;
1145 1145
            connectorSMGeometry.EndPoint = this.MidPoint;
1146 1146
            connectorMEGeometry.StartPoint = this.MidPoint; //핵심
1147
            //Canvas.SetLeft(Base_TextBox, this.EndPoint.X - BoxWidth / 2);
1148
            //Canvas.SetTop(Base_TextBox, this.EndPoint.Y - BoxHeight / 2);
1149 1147

  
1150
            //Canvas.SetLeft(Base_TextBox, this.EndPoint.X);
1151 1148
            Canvas.SetLeft(Base_TextBox, this.EndPoint.X);
1152 1149
            Canvas.SetTop(Base_TextBox, this.EndPoint.Y);
1153 1150
             

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)