프로젝트

일반

사용자정보

개정판 abaa85b4

IDabaa85b44d765caf5e64dc0f50c0cac02bd5f9e6
상위 1fdcd6ff
하위 e25875e0, 476b7d4f

김동진이(가) 5년 이상 전에 추가함

issue #1022 wcf 수정 및 final service 직접 접근 수정.

Change-Id: Iab45b6919293bf86848d3e5fa9768fae3f794410

차이점 보기:

FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs
29 29
        private string _FinalPDFStorgeLocal = null;
30 30
        private string _FinalPDFStorgeRemote = null;
31 31
        private string OriginFileName = null;
32
        public FINAL_PDF FinalItem;
32
        public CommonLib.MARKUS_API.FINAL_PDF FinalItem;
33 33
        public CommonLib.MARKUS_API.DOCINFO DocInfoItem = null;
34 34
        public List<CommonLib.MARKUS_API.DOCPAGE> DocPageItem = null;
35 35
        public CommonLib.MARKUS_API.MARKUP_INFO MarkupInfoItem = null;
......
140 140
        {
141 141
            
142 142
            CommonLib.MARKUS_API.DOCUMENT_ITEM documentItem;
143
            FINAL_PDF FinalPDF = (FINAL_PDF)_FinalPDF;
143
            CommonLib.MARKUS_API.FINAL_PDF FinalPDF = (CommonLib.MARKUS_API.FINAL_PDF)_FinalPDF;
144 144
            FinalItem = FinalPDF;
145 145

  
146 146

  
......
150 150
            #region 문서 경로를 가져오는 것과 Status를 Create (1단계) 로 수정
151 151
            try
152 152
            {
153
                using (KCOMEntities _entity = new KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString()))
153
                using (DataController dc = new DataController())
154 154
                {
155
                    var _properties = _entity.PROPERTIES.Where(pro => pro.PROPERTY == FinalPDF.PROJECT_NO);
156

  
157
                    if (_properties.Count () > 0)
155
                    var _properties = dc.GetProperties(FinalPDF.PROJECT_NO);
156
                    if(_properties != null)
158 157
                    {
159
                        PdfFilePathRoot = _properties.Where(t => t.TYPE == PropertiesType.Const_TileSorcePath).First().VALUE;
158
                        PdfFilePathRoot = _properties.Where(t => t.TYPE == PropertiesType.Const_TileSorcePath).FirstOrDefault().VALUE;
160 159
                        _FinalPDFStorgeLocal = _properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeLocal).First().VALUE;
161 160
                        _FinalPDFStorgeRemote = _properties.Where(t => t.TYPE == PropertiesType.Const_FinalPDFStorgeRemote).First().VALUE;
162 161
                    }
......
165 164
                        SetNotice(FinalPDF.ID, "프로퍼티를 가지고 올 수 없습니다.");
166 165
                        return;
167 166
                    }
168

  
169
                    var finalList = _entity.FINAL_PDF.Where(final => final.ID == FinalPDF.ID);
170

  
171
                    if (finalList.Count() > 0)
172
                    {
173
                        finalList.FirstOrDefault().START_DATETIME = DateTime.Now;
174
                        finalList.FirstOrDefault().STATUS = (int)FinalStatus.Create;
175
                        _entity.SaveChanges(); 
176
                    }
177
                }
167
                    dc.SetFinalStatus(FinalPDF.ID, CommonLib.MARKUS_API.FinalStatus.Create);
168
                }                
178 169
            }
179 170
            catch (Exception ex)
180 171
            {
......
210 201
                        }
211 202
                        else
212 203
                        {
213
                            if (MarkupInfoItem.MARKUP_INFO_VERSION.Count() > 0)
214
                            {
215
                                MarkupDataSet = dc.GetMarkupData(project_no, docinfo_id);
216
                            }
217
                            else
204
                            MarkupDataSet = dc.GetMarkupData(project_no, docinfo_id);
205
                            if (MarkupDataSet == null)
218 206
                            {
219 207
                                throw new Exception("MARKUP_INFO_VERSION 이 존재 하지 않습니다");
220
                            }
208
                            }                            
221 209
                        }
222 210
                        documentItem = dc.GetDocumentItem(project_no, DocInfoItem.DOCUMENT_ID);
223 211
                        if (documentItem == null)
......
297 285

  
298 286
            try
299 287
            {
288
                TestFile = SetFlattingPDF(TestFile);
289
                SetStampInPDF(FinalItem, TestFile, MarkupInfoItem);
300 290

  
301
                using (KCOMEntities _entity = new KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString()))
302
                {
303
                    var finalList = _entity.FINAL_PDF.Where(final => final.ID == FinalPDF.ID);
304

  
305
                    if (finalList.Count() > 0)
306
                    {
307
                        TestFile = SetFlattingPDF(TestFile);
308
                        //finalList.FirstOrDefault().STATUS = (int)FinalStatus.Insert;
309
                        //_entity.SaveChanges();
310

  
311
                        SetStampInPDF(FinalItem, TestFile, MarkupInfoItem);
312
                        //finalList.FirstOrDefault().STATUS = (int)FinalStatus.PdfStamp;
313
                        //_entity.SaveChanges();
314
                    }
315
                }
316
                    if (EndFinal != null)
291
                if (EndFinal != null)
317 292
                    {
318 293
                        EndFinal(this, new EndFinalEventArgs
319 294
                        {
......
349 324
                    var mediaBox = pdfReader.GetPageSize(i);
350 325
                    var cropbox = pdfReader.GetCropBox(i);
351 326

  
352
                    //using (CIEntities _entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString().ToString()))
353
                    //{
354
                    //    _entity.DOCPAGE.Where(d=>d.DOCINFO_ID == DocInfoItem.DOCPAGE)
355
                    //}
356 327
                    var currentPage = DocPageItem.Where(d => d.PAGE_NUMBER == i).FirstOrDefault();
357 328

  
358
                    //scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / mediaBox.Width;
359
                    //scaleHeight = float.Parse(currentPage.PAGE_HEIGHT) / mediaBox.Height;
360
                    //scaleWidth = 2.0832634F;
361
                    //scaleHeight = 3.0F;
362

  
363 329
                    PdfRectangle rect = new PdfRectangle(cropbox, pdfReader.GetPageRotation(i));
364
                    //강인구 수정
365
                    //if (cropbox != null && (cropbox.Width < mediaBox.Width || cropbox.Height < cropbox.Height))
366
                    //if (cropbox != null && (cropbox.Width < mediaBox.Width || cropbox.Height < mediaBox.Height))
367
                    //{
368
                    //    var pageDict = pdfReader.GetPageN(i);
369
                    //    pageDict.Put(PdfName.MEDIABOX, rect);
370
                    //}
371 330
                }
372 331

  
373 332
                var memStream = new MemoryStream();
......
408 367
            File.WriteAllBytes(dest, array);
409 368
        }
410 369
        
411
        public bool SetStampInPDF(FINAL_PDF finaldata, string testFile, CommonLib.MARKUS_API.MARKUP_INFO markupInfo)
370
        public bool SetStampInPDF(CommonLib.MARKUS_API.FINAL_PDF finaldata, string testFile, CommonLib.MARKUS_API.MARKUP_INFO markupInfo)
412 371
        {
413 372
            string pdfFilePath = null;
414 373
            
......
419 378
                Directory.CreateDirectory(_FinalPDFStorgeLocal);
420 379
            }
421 380
            pdfFilePath = _FinalPDFStorgeLocal + @"\" + tempFileInfo.Name;
422
            
423
            using (KCOMEntities _entity = new KCOMEntities(ConnectStringBuilder.KCOMConnectionString().ToString()))
424
            {
425
                FINAL_PDF pdfLink = _entity.FINAL_PDF.Where(data => data.ID == finaldata.ID).FirstOrDefault();
426 381

  
427
                #region 코멘트 적용 + 커버시트
428
                using (Stream pdfStream = new FileInfo(testFile).Open(FileMode.Open, FileAccess.ReadWrite)) //
382
            #region 코멘트 적용 + 커버시트
383
            using (Stream pdfStream = new FileInfo(testFile).Open(FileMode.Open, FileAccess.ReadWrite)) //
384
            {
385
                PdfReader pdfReader = new PdfReader(pdfStream);
386
                //List<Dictionary<string, object>> lstoutlineTop = new List<Dictionary<string, object>>();
387
                Dictionary<string, object> bookmark;
388
                List<Dictionary<string, object>> outlines;
389
                outlines = new List<Dictionary<string, object>>();
390
                List<Dictionary<string, object>> root = new List<Dictionary<string, object>>();
391

  
392
                var dic = new Dictionary<string, object>();
393
                foreach (var data in MarkupDataSet)
429 394
                {
430
                    PdfReader pdfReader = new PdfReader(pdfStream);
431
                    //List<Dictionary<string, object>> lstoutlineTop = new List<Dictionary<string, object>>();
432
                    Dictionary<string, object> bookmark;
433
                    List<Dictionary<string, object>> outlines;
434
                    outlines = new List<Dictionary<string, object>>();
435
                    List<Dictionary<string, object>> root = new List<Dictionary<string, object>>();
436

  
437
                    var dic = new Dictionary<string, object>();
438
                    foreach (var data in MarkupDataSet)
395

  
396
                    string userid = string.Empty;
397
                    string username = string.Empty;
398
                    string userdept = string.Empty;
399
                    using (DataController dataController = new DataController())
439 400
                    {
440
                        
441
                        string userid = data.MARKUP_INFO_VERSION.MARKUP_INFO.USER_ID;
442
                        string username = string.Empty;
443
                        string userdept = string.Empty;
444
                        using (DataController dataController = new DataController())
445
                        {
446
                            var member = dataController.GetMemberInfo(markupInfo.DOCINFO.PROJECT_NO, userid);
447
                            username = member.NAME;
448
                            userdept = member.DEPARTMENT;
449
                        }                        
450
                        
451
                        bookmark = new Dictionary<string, object>();
452
                        bookmark.Add("Title", string.Format("User:{0}[{1}] Commented Page : {2}", username, userdept, data.PAGENUMBER));
453
                        bookmark.Add("Page", data.PAGENUMBER + " Fit");
454
                        bookmark.Add("Action", "GoTo");
455
                        bookmark.Add("Kids", outlines);
456
                        root.Add(bookmark);
401
                        var member = dataController.GetCommentMemberInfo(finaldata.PROJECT_NO, data.ID);
402
                        userid = member.ID;
403
                        username = member.NAME;
404
                        userdept = member.DEPARTMENT;
457 405
                    }
458 406

  
407
                    bookmark = new Dictionary<string, object>();
408
                    bookmark.Add("Title", string.Format("User:{0}[{1}] Commented Page : {2}", username, userdept, data.PAGENUMBER));
409
                    bookmark.Add("Page", data.PAGENUMBER + " Fit");
410
                    bookmark.Add("Action", "GoTo");
411
                    bookmark.Add("Kids", outlines);
412
                    root.Add(bookmark);
413
                }
414

  
459 415

  
460
                    using (PdfStamper pdfStamper = new PdfStamper(pdfReader, new FileStream(pdfFilePath, FileMode.Create)))
416
                using (PdfStamper pdfStamper = new PdfStamper(pdfReader, new FileStream(pdfFilePath, FileMode.Create)))
417
                {
418
                    var _SetColor = new SolidColorBrush(Colors.Red);
419

  
420
                    string[] delimiterChars = { "|DZ|" };
421
                    string[] delimiterChars2 = { "|" };
422

  
423
                    //pdfStamper.FormFlattening = true; //이미 선처리 작업함
424
                    pdfStamper.SetFullCompression();
425
                    _SetColor = new SolidColorBrush(Colors.Red);
426

  
427
                    foreach (var markupItem in MarkupDataSet)
461 428
                    {
462
                        var _SetColor = new SolidColorBrush(Colors.Red);
463
                        
464
                        string[] delimiterChars = { "|DZ|" };
465
                        string[] delimiterChars2 = { "|" };
429
                        pdfSize = pdfReader.GetPageSizeWithRotation(markupItem.PAGENUMBER);
430
                        var currentPage = DocPageItem.Where(d => d.PAGE_NUMBER == markupItem.PAGENUMBER).FirstOrDefault();
466 431

  
467
                        //pdfStamper.FormFlattening = true; //이미 선처리 작업함
468
                        pdfStamper.SetFullCompression();
469
                        _SetColor = new SolidColorBrush(Colors.Red);
432
                        mediaBox = pdfReader.GetPageSize(markupItem.PAGENUMBER);
433
                        var cropBox = pdfReader.GetCropBox(markupItem.PAGENUMBER);
470 434

  
471
                        foreach (var markupItem in MarkupDataSet)
472
                        {
473
                            pdfSize = pdfReader.GetPageSizeWithRotation(markupItem.PAGENUMBER);
474
                            var currentPage = DocPageItem.Where(d => d.PAGE_NUMBER == markupItem.PAGENUMBER).FirstOrDefault();
435
                        //scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / mediaBox.Width;
436
                        //scaleHeight = float.Parse(currentPage.PAGE_HEIGHT) / mediaBox.Height;
475 437

  
476
                            mediaBox = pdfReader.GetPageSize(markupItem.PAGENUMBER);
477
                            var cropBox = pdfReader.GetCropBox(markupItem.PAGENUMBER);
438
                        //강인구 테스트
439
                        scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / pdfSize.Width;
440
                        scaleHeight = float.Parse(currentPage.PAGE_HEIGHT) / pdfSize.Height;
478 441

  
479
                            //scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / mediaBox.Width;
480
                            //scaleHeight = float.Parse(currentPage.PAGE_HEIGHT) / mediaBox.Height;
481
                            
482
                            //강인구 테스트
483
                            scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / pdfSize.Width;
484
                            scaleHeight = float.Parse(currentPage.PAGE_HEIGHT) / pdfSize.Height;
442
                        if (cropBox != null && cropBox.Width < mediaBox.Width || cropBox.Height < mediaBox.Height)
443
                        {
444
                            mediaBox = cropBox;
445
                        }
446
                        using (DataController dc = new DataController())
447
                        {
448
                            dc.SetFinalCurrentPage(finaldata.ID, markupItem.PAGENUMBER);
449
                        }                            
485 450

  
486
                            if (cropBox != null && cropBox.Width < mediaBox.Width || cropBox.Height < mediaBox.Height)
487
                            {
488
                                mediaBox = cropBox;
489
                            }
490
                            
491
                            pdfLink.CURRENT_PAGE = markupItem.PAGENUMBER;
492
                            _entity.SaveChanges();
451
                        string[] markedData = markupItem.DATA.Split(delimiterChars, StringSplitOptions.RemoveEmptyEntries);
493 452

  
494
                            string[] markedData = markupItem.DATA.Split(delimiterChars, StringSplitOptions.RemoveEmptyEntries);
453
                        PdfContentByte contentByte = pdfStamper.GetOverContent(markupItem.PAGENUMBER);
495 454

  
496
                            PdfContentByte contentByte = pdfStamper.GetOverContent(markupItem.PAGENUMBER);
497 455

  
498
                            
499
                            foreach (var data in markedData)
500
                            {
501
                                var item = JsonSerializerHelper.UnCompressString(data);
502
                                var ControlT = JsonSerializerHelper.JsonDeserialize<S_BaseControl>(item);
456
                        foreach (var data in markedData)
457
                        {
458
                            var item = JsonSerializerHelper.UnCompressString(data);
459
                            var ControlT = JsonSerializerHelper.JsonDeserialize<S_BaseControl>(item);
503 460

  
504
                                try
461
                            try
462
                            {
463
                                switch (ControlT.Name)
505 464
                                {
506
                                    switch (ControlT.Name)
507
                                    {
508
                                        #region LINE
509
                                        case "LineControl":
465
                                    #region LINE
466
                                    case "LineControl":
467
                                        {
468
                                            using (S_LineControl control = JsonSerializerHelper.JsonDeserialize<S_LineControl>(item))
510 469
                                            {
511
                                                using (S_LineControl control = JsonSerializerHelper.JsonDeserialize<S_LineControl>(item))
470
                                                string[] InnerData = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
471
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
472
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
473
                                                DoubleCollection DashSize = control.DashSize;
474
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
475

  
476
                                                var Opacity = control.Opac;
477
                                                string UserID = control.UserID;
478
                                                double Interval = control.Interval;
479
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
480
                                                Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(StartPoint, EndPoint, LineSize, contentByte, control.DashSize, _SetColor, Opacity);
481
                                                switch (control.LineStyleSet)
512 482
                                                {
513
                                                    string[] InnerData = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
514
                                                    Point StartPoint = GetPdfPointSystem(control.StartPoint);
515
                                                    Point EndPoint = GetPdfPointSystem(control.EndPoint);
516
                                                    DoubleCollection DashSize = control.DashSize;
517
                                                    List<Point> PointSet = GetPdfPointSystem(control.PointSet);
518

  
519
                                                    var Opacity = control.Opac;
520
                                                    string UserID = control.UserID;
521
                                                    double Interval = control.Interval;
522
                                                    double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
523
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(StartPoint, EndPoint, LineSize, contentByte, control.DashSize, _SetColor, Opacity);
524
                                                    switch (control.LineStyleSet)
525
                                                    {
526
                                                        case LineStyleSet.ArrowLine:
527
                                                            Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
528
                                                            break;
529
                                                        case LineStyleSet.CancelLine:
530
                                                            {
531
                                                                var x = Math.Abs((Math.Abs(StartPoint.X) - Math.Abs(EndPoint.X)));
532
                                                                var y = Math.Abs((Math.Abs(StartPoint.Y) - Math.Abs(EndPoint.Y)));
533

  
534
                                                                if (x > y)
535
                                                                {
536
                                                                    StartPoint = new Point(StartPoint.X, StartPoint.Y - (float)(control.Interval / 3.0));
537
                                                                    EndPoint = new Point(EndPoint.X, EndPoint.Y - (float)(control.Interval / 3.0));
538
                                                                    Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(StartPoint, EndPoint, LineSize, contentByte, DashSize, _SetColor, Opacity);
539
                                                                }
540
                                                            }
541
                                                            break;
542
                                                        case LineStyleSet.TwinLine:
543
                                                            {
544
                                                                Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
545
                                                                Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(StartPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
546
                                                            }
547
                                                            break;
548
                                                        case LineStyleSet.DimLine:
483
                                                    case LineStyleSet.ArrowLine:
484
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
485
                                                        break;
486
                                                    case LineStyleSet.CancelLine:
487
                                                        {
488
                                                            var x = Math.Abs((Math.Abs(StartPoint.X) - Math.Abs(EndPoint.X)));
489
                                                            var y = Math.Abs((Math.Abs(StartPoint.Y) - Math.Abs(EndPoint.Y)));
490

  
491
                                                            if (x > y)
549 492
                                                            {
550
                                                                Controls_PDF.HoneyPDFLib_DrawSet_Arrow.DimAllow(StartPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
551
                                                                Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
552
                                                                Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(StartPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
493
                                                                StartPoint = new Point(StartPoint.X, StartPoint.Y - (float)(control.Interval / 3.0));
494
                                                                EndPoint = new Point(EndPoint.X, EndPoint.Y - (float)(control.Interval / 3.0));
495
                                                                Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(StartPoint, EndPoint, LineSize, contentByte, DashSize, _SetColor, Opacity);
553 496
                                                            }
554
                                                            break;
555
                                                        default:
556
                                                            break;
557
                                                    }
558

  
559
                                                    
497
                                                        }
498
                                                        break;
499
                                                    case LineStyleSet.TwinLine:
500
                                                        {
501
                                                            Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
502
                                                            Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(StartPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
503
                                                        }
504
                                                        break;
505
                                                    case LineStyleSet.DimLine:
506
                                                        {
507
                                                            Controls_PDF.HoneyPDFLib_DrawSet_Arrow.DimAllow(StartPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
508
                                                            Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
509
                                                            Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(StartPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
510
                                                        }
511
                                                        break;
512
                                                    default:
513
                                                        break;
560 514
                                                }
561
                                            }
562
                                            break;
563
                                        #endregion
564
                                        #region ArrowControlMulti
565
                                        case "ArrowControl_Multi":
566
                                            {
567
                                                using (S_ArrowControl_Multi control = JsonSerializerHelper.JsonDeserialize<S_ArrowControl_Multi>(item))
568
                                                {
569
                                                    string[] InnerData = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
570
                                                    Point StartPoint = GetPdfPointSystem(control.StartPoint);
571
                                                    Point MidPoint = GetPdfPointSystem(control.MidPoint);
572
                                                    Point EndPoint = GetPdfPointSystem(control.EndPoint);
573
                                                    DoubleCollection DashSize = control.DashSize;
574
                                                    List<Point> PointSet = GetPdfPointSystem(control.PointSet);
575
                                                    double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
576 515

  
577
                                                    double Opacity = control.Opac;
578 516

  
579
                                                    if (EndPoint == MidPoint)
580
                                                    {
581
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(MidPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
582
                                                    }
583
                                                    else
584
                                                    {
585
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, MidPoint, (int)LineSize, contentByte, _SetColor, Opacity);
586
                                                    }
587

  
588
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(PointSet, LineSize, contentByte, DashSize, _SetColor, Opacity);
589

  
590
                                                }
591 517
                                            }
592
                                            break;
593
                                        #endregion
594
                                        #region PolyControl
595
                                        case "PolygonControl":
596
                                         using (S_PolyControl control = JsonSerializerHelper.JsonDeserialize <S_PolyControl>(item))
597
                                         {
518
                                        }
519
                                        break;
520
                                    #endregion
521
                                    #region ArrowControlMulti
522
                                    case "ArrowControl_Multi":
523
                                        {
524
                                            using (S_ArrowControl_Multi control = JsonSerializerHelper.JsonDeserialize<S_ArrowControl_Multi>(item))
525
                                            {
598 526
                                                string[] InnerData = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
599 527
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
528
                                                Point MidPoint = GetPdfPointSystem(control.MidPoint);
600 529
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
530
                                                DoubleCollection DashSize = control.DashSize;
601 531
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
602 532
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
533

  
603 534
                                                double Opacity = control.Opac;
604
                                                DoubleCollection DashSize = control.DashSize;
535

  
536
                                                if (EndPoint == MidPoint)
537
                                                {
538
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(MidPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity);
539
                                                }
540
                                                else
541
                                                {
542
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(EndPoint, MidPoint, (int)LineSize, contentByte, _SetColor, Opacity);
543
                                                }
605 544

  
606 545
                                                Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(PointSet, LineSize, contentByte, DashSize, _SetColor, Opacity);
546

  
607 547
                                            }
548
                                        }
549
                                        break;
550
                                    #endregion
551
                                    #region PolyControl
552
                                    case "PolygonControl":
553
                                        using (S_PolyControl control = JsonSerializerHelper.JsonDeserialize<S_PolyControl>(item))
554
                                        {
555
                                            string[] InnerData = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
556
                                            Point StartPoint = GetPdfPointSystem(control.StartPoint);
557
                                            Point EndPoint = GetPdfPointSystem(control.EndPoint);
558
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
559
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
560
                                            double Opacity = control.Opac;
561
                                            DoubleCollection DashSize = control.DashSize;
562

  
563
                                            Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(PointSet, LineSize, contentByte, DashSize, _SetColor, Opacity);
564
                                        }
608 565
                                        break;
609
                                        #endregion
610
                                        #region ArcControl
611
                                        case "ArcControl":
566
                                    #endregion
567
                                    #region ArcControl
568
                                    case "ArcControl":
569
                                        {
570
                                            using (S_ArcControl control = JsonSerializerHelper.JsonDeserialize<S_ArcControl>(item))
612 571
                                            {
613
                                                using (S_ArcControl control = JsonSerializerHelper.JsonDeserialize<S_ArcControl>(item))
614
                                                {
615
                                                    string[] InnerData = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
616
                                                    Point StartPoint = GetPdfPointSystem(control.StartPoint);
617
                                                    Point EndPoint = GetPdfPointSystem(control.EndPoint);
618
                                                    Point MidPoint = GetPdfPointSystem(control.MidPoint);
619
                                                    DoubleCollection DashSize = control.DashSize;
620
                                                    List<Point> PointSet = GetPdfPointSystem(control.PointSet);
621

  
622
                                                    var Opacity = control.Opac;
623
                                                    string UserID = control.UserID;
624
                                                    double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
625
                                                    bool IsTransOn = control.IsTransOn;
626

  
627
                                                    if (control.IsTransOn)
628
                                                    {
629
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(MidPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity, true);
630
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(MidPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity, true);
631
                                                    }
632
                                                    else
633
                                                    {
634
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Arc.DrawArc(StartPoint, MidPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
635
                                                    }
572
                                                string[] InnerData = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
573
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
574
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
575
                                                Point MidPoint = GetPdfPointSystem(control.MidPoint);
576
                                                DoubleCollection DashSize = control.DashSize;
577
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
636 578

  
579
                                                var Opacity = control.Opac;
580
                                                string UserID = control.UserID;
581
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(InnerData.First()));
582
                                                bool IsTransOn = control.IsTransOn;
583

  
584
                                                if (control.IsTransOn)
585
                                                {
586
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(MidPoint, StartPoint, (int)LineSize, contentByte, _SetColor, Opacity, true);
587
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Arrow.SingleAllow(MidPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity, true);
588
                                                }
589
                                                else
590
                                                {
591
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Arc.DrawArc(StartPoint, MidPoint, EndPoint, (int)LineSize, contentByte, _SetColor, Opacity);
637 592
                                                }
593

  
638 594
                                            }
639
                                            break;
640
                                        #endregion
641
                                        #region RectangleControl
642
                                        case "RectangleControl":
595
                                        }
596
                                        break;
597
                                    #endregion
598
                                    #region RectangleControl
599
                                    case "RectangleControl":
643 600
                                        using (S_RectControl control = JsonSerializerHelper.JsonDeserialize<S_RectControl>(item))
644 601
                                        {
645
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
646
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
647
                                                var PaintStyle = control.PaintState;
648
                                                double Angle = control.Angle;
649
                                                DoubleCollection DashSize = control.DashSize;
650
                                                double Opacity = control.Opac;
651
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
652
                                                
653
                                                Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawRectangle(PointSet, LineSize, contentByte, DashSize, _SetColor, PaintStyle, Opacity);
602
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
603
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
604
                                            var PaintStyle = control.PaintState;
605
                                            double Angle = control.Angle;
606
                                            DoubleCollection DashSize = control.DashSize;
607
                                            double Opacity = control.Opac;
608
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
609

  
610
                                            Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawRectangle(PointSet, LineSize, contentByte, DashSize, _SetColor, PaintStyle, Opacity);
654 611
                                        }
655 612
                                        break;
656
                                        #endregion
657
                                        #region TriControl
658
                                        case "TriControl":
659
                                        using (S_TriControl control  = JsonSerializerHelper.JsonDeserialize<S_TriControl>(item))
613
                                    #endregion
614
                                    #region TriControl
615
                                    case "TriControl":
616
                                        using (S_TriControl control = JsonSerializerHelper.JsonDeserialize<S_TriControl>(item))
660 617
                                        {
661
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
662
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
663
                                                var PaintStyle = control.Paint;
664
                                                double Angle = control.Angle;
665
                                                //StrokeColor = _SetColor, //색상은 레드
666
                                                DoubleCollection DashSize = control.DashSize;
667
                                                double Opacity = control.Opac;
668
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
669

  
670
                                                Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawPolygon(PointSet, LineSize, contentByte, DashSize, _SetColor, PaintStyle, Opacity);
671
                                            }
618
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
619
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
620
                                            var PaintStyle = control.Paint;
621
                                            double Angle = control.Angle;
622
                                            //StrokeColor = _SetColor, //색상은 레드
623
                                            DoubleCollection DashSize = control.DashSize;
624
                                            double Opacity = control.Opac;
625
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
626

  
627
                                            Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawPolygon(PointSet, LineSize, contentByte, DashSize, _SetColor, PaintStyle, Opacity);
628
                                        }
672 629
                                        break;
673
                                        #endregion
674
                                        #region CircleControl
675
                                        case "CircleControl":                                            
676
                                            using (S_CircleControl control = JsonSerializerHelper.JsonDeserialize<S_CircleControl>(item))
677
                                            {
678
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
679
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
680
                                                var StartPoint = GetPdfPointSystem(control.StartPoint);
681
                                                var EndPoint = GetPdfPointSystem(control.EndPoint);
682
                                                var PaintStyle = control.PaintState;
683
                                                double Angle = control.Angle;
684
                                                DoubleCollection DashSize = control.DashSize;
685
                                                double Opacity = control.Opac;
686
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
687
                                                Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawCircle(StartPoint, EndPoint, LineSize, contentByte, DashSize, _SetColor, PaintStyle, Opacity, Angle, PointSet);
630
                                    #endregion
631
                                    #region CircleControl
632
                                    case "CircleControl":
633
                                        using (S_CircleControl control = JsonSerializerHelper.JsonDeserialize<S_CircleControl>(item))
634
                                        {
635
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
636
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
637
                                            var StartPoint = GetPdfPointSystem(control.StartPoint);
638
                                            var EndPoint = GetPdfPointSystem(control.EndPoint);
639
                                            var PaintStyle = control.PaintState;
640
                                            double Angle = control.Angle;
641
                                            DoubleCollection DashSize = control.DashSize;
642
                                            double Opacity = control.Opac;
643
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
644
                                            Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawCircle(StartPoint, EndPoint, LineSize, contentByte, DashSize, _SetColor, PaintStyle, Opacity, Angle, PointSet);
688 645

  
689
                                            }
646
                                        }
690 647
                                        break;
691
                                        #endregion
692
                                        #region RectCloudControl
693
                                        case "RectCloudControl":
694
                                            using (S_RectCloudControl control = JsonSerializerHelper.JsonDeserialize<S_RectCloudControl>(item))
695
                                            {
696
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
697
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
698
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
699
                                                double size = MathSet.DistanceTo(GetPdfPointSystem(control.StartPoint), GetPdfPointSystem(control.EndPoint));
648
                                    #endregion
649
                                    #region RectCloudControl
650
                                    case "RectCloudControl":
651
                                        using (S_RectCloudControl control = JsonSerializerHelper.JsonDeserialize<S_RectCloudControl>(item))
652
                                        {
653
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
654
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
655
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
656
                                            double size = MathSet.DistanceTo(GetPdfPointSystem(control.StartPoint), GetPdfPointSystem(control.EndPoint));
700 657

  
701
                                                double ArcLength = (control.ArcLength == 0 ? 10 : control.ArcLength)/(scaleWidth > scaleHeight ? scaleWidth : scaleHeight);
658
                                            double ArcLength = (control.ArcLength == 0 ? 10 : control.ArcLength) / (scaleWidth > scaleHeight ? scaleWidth : scaleHeight);
702 659

  
703
                                                var PaintStyle = control.PaintState;
704
                                                double Opacity = control.Opac;
705
                                                DoubleCollection DashSize = control.DashSize;
660
                                            var PaintStyle = control.PaintState;
661
                                            double Opacity = control.Opac;
662
                                            DoubleCollection DashSize = control.DashSize;
706 663

  
707
                                                //드로잉 방식이 표현되지 않음
708
                                                var rrrr = returnAngle(GetPdfPointSystem(control.StartPoint), GetPdfPointSystem(control.EndPoint));
664
                                            //드로잉 방식이 표현되지 않음
665
                                            var rrrr = returnAngle(GetPdfPointSystem(control.StartPoint), GetPdfPointSystem(control.EndPoint));
709 666

  
710
                                                double area = MathSet.AreaOf(GetPdfPointSystem(control.PointSet));
711
                                                bool reverse = (area < 0);
712
                                                if (PaintStyle == PaintSet.None)
667
                                            double area = MathSet.AreaOf(GetPdfPointSystem(control.PointSet));
668
                                            bool reverse = (area < 0);
669
                                            if (PaintStyle == PaintSet.None)
670
                                            {
671
                                                Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
672
                                            }
673
                                            else
674
                                            {
675
                                                Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
676
                                            }
677
                                        }
678
                                        break;
679
                                    #endregion
680
                                    #region CloudControl
681
                                    case "CloudControl":
682
                                        using (S_CloudControl control = JsonSerializerHelper.JsonDeserialize<S_CloudControl>(item))
683
                                        {
684
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
685
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
686
                                            double Toler = control.Toler;
687
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
688
                                            double ArcLength = (control.ArcLength == 0 ? 10 : control.ArcLength) / (scaleWidth > scaleHeight ? scaleWidth : scaleHeight);
689
                                            var PaintStyle = control.PaintState;
690
                                            double Opacity = control.Opac;
691
                                            bool isTransOn = control.IsTrans;
692
                                            bool isChain = control.IsChain;
693

  
694
                                            DoubleCollection DashSize = control.DashSize;
695

  
696
                                            if (isChain)
697
                                            {
698
                                                Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(PointSet, LineSize, contentByte, DashSize, _SetColor, Opacity);
699
                                            }
700
                                            else
701
                                            {
702
                                                if (isTransOn)
713 703
                                                {
714
                                                    Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
704
                                                    double area = MathSet.AreaOf(GetPdfPointSystem(control.PointSet));
705
                                                    bool reverse = (area < 0);
706

  
707
                                                    if (PaintStyle == PaintSet.None)
708
                                                    {
709
                                                        Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
710
                                                    }
711
                                                    else
712
                                                    {
713
                                                        Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
714
                                                    }
715 715
                                                }
716 716
                                                else
717 717
                                                {
718
                                                    Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
718
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawPolygon(PointSet, LineSize, contentByte, control.DashSize, _SetColor, PaintStyle, Opacity);
719 719
                                                }
720 720
                                            }
721
                                            break;
722
                                        #endregion
723
                                        #region CloudControl
724
                                        case "CloudControl":
725
                                            using (S_CloudControl control = JsonSerializerHelper.JsonDeserialize<S_CloudControl>(item))
721
                                        }
722
                                        break;
723
                                    #endregion
724
                                    #region TEXT
725
                                    case "TextControl":
726
                                        using (S_TextControl control = JsonSerializerHelper.JsonDeserialize<S_TextControl>(item))
727
                                        {
728
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
729
                                            string Text = control.Text;
730

  
731
                                            bool isUnderline = false;
732
                                            control.BoxW -= scaleWidth;
733
                                            control.BoxH -= scaleHeight;
734
                                            System.Drawing.SizeF sizeF = new System.Drawing.SizeF((float)control.BoxW, (float)control.BoxH);
735
                                            Point StartPoint = GetPdfPointSystem(control.StartPoint);
736
                                            Point EndPoint = GetPdfPointSystem(new Point(control.StartPoint.X + control.BoxW, control.StartPoint.Y + control.BoxH));
737

  
738
                                            List<Point> pointSet = new List<Point>();
739
                                            pointSet.Add(StartPoint);
740
                                            pointSet.Add(EndPoint);
741

  
742
                                            PaintSet paint = PaintSet.None;
743
                                            switch (control.paintMethod)
726 744
                                            {
727
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
728
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
729
                                                double Toler = control.Toler;
730
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
731
                                                double ArcLength = (control.ArcLength == 0 ? 10 : control.ArcLength)/(scaleWidth > scaleHeight ? scaleWidth : scaleHeight);
732
                                                var PaintStyle = control.PaintState;
733
                                                double Opacity = control.Opac;
734
                                                bool isTransOn = control.IsTrans;
735
                                                bool isChain = control.IsChain;
736

  
737
                                                DoubleCollection DashSize = control.DashSize;
738

  
739
                                                if (isChain)
740
                                                {
741
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Line.DrawLine(PointSet, LineSize, contentByte, DashSize, _SetColor, Opacity);
742
                                                }
743
                                                else
744
                                                {
745
                                                    if (isTransOn)
745
                                                case 1:
746 746
                                                    {
747
                                                        double area = MathSet.AreaOf(GetPdfPointSystem(control.PointSet));
748
                                                        bool reverse = (area < 0);
749

  
750
                                                        if (PaintStyle == PaintSet.None)
751
                                                        {
752
                                                            Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
753
                                                        }
754
                                                        else
755
                                                        {
756
                                                            Controls_PDF.DrawSet_Cloud.DrawCloud(PointSet, LineSize, ArcLength, contentByte, control.DashSize, _SetColor, _SetColor, PaintStyle, Opacity);
757
                                                        }
747
                                                        paint = PaintSet.Fill;
758 748
                                                    }
759
                                                    else
749
                                                    break;
750
                                                case 2:
760 751
                                                    {
761
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Shape.DrawPolygon(PointSet, LineSize, contentByte, control.DashSize, _SetColor, PaintStyle, Opacity);
752
                                                        paint = PaintSet.Hatch;
762 753
                                                    }
763
                                                }
754
                                                    break;
755
                                                default:
756
                                                    break;
764 757
                                            }
765
                                        break;
766
                                        #endregion
767
                                        #region TEXT
768
                                        case "TextControl":
769
                                            using (S_TextControl control = JsonSerializerHelper.JsonDeserialize<S_TextControl>(item))
758
                                            if (control.isHighLight) paint |= PaintSet.Highlight;
759

  
760
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
761
                                            double TextSize = Convert.ToDouble(data2[1]);
762
                                            SolidColorBrush FontColor = _SetColor;
763
                                            double Angle = control.Angle;
764
                                            double Opacity = control.Opac;
765
                                            FontFamily fontfamilly = new FontFamily(control.fontConfig[0]);
766
                                            var TextStyle = Common.StringToFont.ConFontStyle(control.fontConfig[1]);
767

  
768
                                            FontStyle fontStyle = FontStyles.Normal;
769
                                            if (FontStyles.Italic == TextStyle)
770 770
                                            {
771
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
772
                                                string Text = control.Text;
771
                                                fontStyle = FontStyles.Italic;
772
                                            }
773 773

  
774
                                                bool isUnderline = false;
775
                                                control.BoxW -= scaleWidth;
776
                                                control.BoxH -= scaleHeight;
777
                                                System.Drawing.SizeF sizeF = new System.Drawing.SizeF((float)control.BoxW, (float)control.BoxH);
778
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
779
                                                Point EndPoint = GetPdfPointSystem(new Point(control.StartPoint.X + control.BoxW, control.StartPoint.Y + control.BoxH));
774
                                            FontWeight fontWeight = FontWeights.Black;
780 775

  
781
                                                List<Point> pointSet = new List<Point>();
782
                                                pointSet.Add(StartPoint);
783
                                                pointSet.Add(EndPoint);
776
                                            var TextWeight = Common.StringToFont.ConFontWeight(control.fontConfig[2]);
777
                                            //강인구 수정(2018.04.17)
778
                                            if (FontWeights.Bold == TextWeight)
779
                                            //if (FontWeights.ExtraBold == TextWeight)
780
                                            {
781
                                                fontWeight = FontWeights.Bold;
782
                                            }
784 783

  
785
                                                PaintSet paint = PaintSet.None;
786
                                                switch (control.paintMethod)
784
                                            TextDecorationCollection decoration = TextDecorations.Baseline;
785
                                            if (control.fontConfig.Count() == 4)
786
                                            {
787
                                                decoration = TextDecorations.Underline;
788
                                            }
789

  
790
                                            Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString(StartPoint, EndPoint, LineSize, contentByte, _SetColor, paint, TextSize, fontfamilly, fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
791
                                        }
792
                                        break;
793
                                    #endregion
794
                                    #region ArrowTextControl
795
                                    case "ArrowTextControl":
796
                                        using (S_ArrowTextControl control = JsonSerializerHelper.JsonDeserialize<S_ArrowTextControl>(item))
797
                                        {
798
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
799
                                            Point tempStartPoint = GetPdfPointSystem(control.StartPoint);
800
                                            Point tempMidPoint = GetPdfPointSystem(control.MidPoint);
801
                                            Point tempEndPoint = GetPdfPointSystem(control.EndPoint);
802
                                            bool isUnderLine = false;
803
                                            string Text = "";
804
                                            double fontsize = 30;
805

  
806
                                            System.Drawing.SizeF sizeF = new System.Drawing.SizeF((float)control.BoxWidth, (float)control.BoxHeight);
807
                                            Rect rect = new Rect(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight));
808
                                            List<Point> tempPoint = new List<Point>();
809

  
810
                                            var tempRectMidPoint = MathSet.getRectMiddlePoint(rect);
811

  
812
                                            tempPoint.Add(new Point(rect.Left, tempRectMidPoint.Y));
813
                                            tempPoint.Add(new Point(tempRectMidPoint.X, rect.Top));
814
                                            tempPoint.Add(new Point(rect.Right, tempRectMidPoint.Y));
815
                                            tempPoint.Add(new Point(tempRectMidPoint.X, rect.Bottom));
816
                                            double Angle = control.Angle;
817
                                            var newStartPoint = tempStartPoint;
818
                                            var newEndPoint = MathSet.getNearPoint(tempPoint, tempMidPoint);
819
                                            var newMidPoint = MathSet.getMiddlePoint(newStartPoint, newEndPoint);
820

  
821
                                            double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
822
                                            SolidColorBrush FontColor = _SetColor;
823
                                            bool isHighlight = control.isHighLight;
824
                                            double Opacity = control.Opac;
825
                                            PaintSet Paint = PaintSet.None;
826

  
827
                                            switch (control.ArrowStyle)
828
                                            {
829
                                                case Controls.Text.ArrowTextControl.ArrowTextStyleSet.Normal:
830
                                                    {
831
                                                        Paint = PaintSet.None;
832
                                                    }
833
                                                    break;
834
                                                case Controls.Text.ArrowTextControl.ArrowTextStyleSet.Cloud:
835
                                                    {
836
                                                        Paint = PaintSet.Hatch;
837
                                                    }
838
                                                    break;
839
                                                case Controls.Text.ArrowTextControl.ArrowTextStyleSet.Rect:
840
                                                    {
841
                                                        Paint = PaintSet.Fill;
842
                                                    }
843
                                                    break;
844
                                                default:
845
                                                    break;
846
                                            }
847
                                            if (control.isHighLight) Paint |= PaintSet.Highlight;
848

  
849
                                            if (Paint == PaintSet.Hatch)
850
                                            {
851
                                                Text = control.ArrowText;
852
                                            }
853
                                            else
854
                                            {
855
                                                Text = control.ArrowText;
856
                                            }
857

  
858
                                            try
859
                                            {
860
                                                if (control.fontConfig.Count == 4)
787 861
                                                {
788
                                                    case 1:
789
                                                        {
790
                                                            paint = PaintSet.Fill;
791
                                                        }
792
                                                        break;
793
                                                    case 2:
794
                                                        {
795
                                                            paint = PaintSet.Hatch;
796
                                                        }
797
                                                        break;
798
                                                    default:
799
                                                        break;
862
                                                    fontsize = Convert.ToDouble(control.fontConfig[3]);
800 863
                                                }
801
                                                if (control.isHighLight) paint |= PaintSet.Highlight;
802 864

  
803
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
804
                                                double TextSize = Convert.ToDouble(data2[1]);
805
                                                SolidColorBrush FontColor = _SetColor;
806
                                                double Angle = control.Angle;
807
                                                double Opacity = control.Opac;
808
                                                FontFamily fontfamilly = new FontFamily(control.fontConfig[0]);
865
                                                //강인구 수정(2018.04.17)
809 866
                                                var TextStyle = Common.StringToFont.ConFontStyle(control.fontConfig[1]);
810 867

  
811 868
                                                FontStyle fontStyle = FontStyles.Normal;
......
817 874
                                                FontWeight fontWeight = FontWeights.Black;
818 875

  
819 876
                                                var TextWeight = Common.StringToFont.ConFontWeight(control.fontConfig[2]);
820
                                                //강인구 수정(2018.04.17)
821 877
                                                if (FontWeights.Bold == TextWeight)
822
                                                //if (FontWeights.ExtraBold == TextWeight)
823 878
                                                {
824 879
                                                    fontWeight = FontWeights.Bold;
825 880
                                                }
826 881

  
827 882
                                                TextDecorationCollection decoration = TextDecorations.Baseline;
828
                                                if (control.fontConfig.Count() == 4)
883
                                                if (control.fontConfig.Count() == 5)
829 884
                                                {
830 885
                                                    decoration = TextDecorations.Underline;
831 886
                                                }
832 887

  
833
                                                Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString(StartPoint, EndPoint, LineSize, contentByte, _SetColor, paint, TextSize, fontfamilly, fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
834
                                            }
835
                                            break;
836
                                        #endregion
837
                                        #region ArrowTextControl
838
                                        case "ArrowTextControl":
839
                                            using (S_ArrowTextControl control = JsonSerializerHelper.JsonDeserialize<S_ArrowTextControl>(item))
840
                                            {
841
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
842
                                                Point tempStartPoint = GetPdfPointSystem(control.StartPoint);
843
                                                Point tempMidPoint = GetPdfPointSystem(control.MidPoint);
844
                                                Point tempEndPoint = GetPdfPointSystem(control.EndPoint);
845
                                                bool isUnderLine = false;
846
                                                string Text = "";
847
                                                double fontsize = 30;
848

  
849
                                                System.Drawing.SizeF sizeF = new System.Drawing.SizeF((float)control.BoxWidth, (float)control.BoxHeight);
850
                                                Rect rect = new Rect(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight));
851
                                                List<Point> tempPoint = new List<Point>();
852

  
853
                                                var tempRectMidPoint = MathSet.getRectMiddlePoint(rect);
854

  
855
                                                tempPoint.Add(new Point(rect.Left, tempRectMidPoint.Y));
856
                                                tempPoint.Add(new Point(tempRectMidPoint.X, rect.Top));
857
                                                tempPoint.Add(new Point(rect.Right, tempRectMidPoint.Y));
858
                                                tempPoint.Add(new Point(tempRectMidPoint.X, rect.Bottom));
859
                                                double Angle = control.Angle;
860
                                                var newStartPoint = tempStartPoint;
861
                                                var newEndPoint = MathSet.getNearPoint(tempPoint, tempMidPoint);
862
                                                var newMidPoint = MathSet.getMiddlePoint(newStartPoint, newEndPoint);
863

  
864
                                                double LineSize = Common.ConverterLineSize.Convert(Convert.ToInt32(data2.First()));
865
                                                SolidColorBrush FontColor = _SetColor;
866
                                                bool isHighlight = control.isHighLight;
867
                                                double Opacity = control.Opac;
868
                                                PaintSet Paint = PaintSet.None;
869

  
870
                                                switch (control.ArrowStyle)
871
                                                {
872
                                                    case Controls.Text.ArrowTextControl.ArrowTextStyleSet.Normal:
873
                                                        {
874
                                                            Paint = PaintSet.None;
875
                                                        }
876
                                                        break;
877
                                                    case Controls.Text.ArrowTextControl.ArrowTextStyleSet.Cloud:
878
                                                        {
879
                                                            Paint = PaintSet.Hatch;
880
                                                        }
881
                                                        break;
882
                                                    case Controls.Text.ArrowTextControl.ArrowTextStyleSet.Rect:
883
                                                        {
884
                                                            Paint = PaintSet.Fill;
885
                                                        }
886
                                                        break;
887
                                                    default:
888
                                                        break;
889
                                                }
890
                                                if (control.isHighLight) Paint |= PaintSet.Highlight;
891

  
892
                                                if (Paint == PaintSet.Hatch)
893
                                                {
894
                                                    Text = control.ArrowText;
895
                                                }
896
                                                else
897
                                                {
898
                                                    Text = control.ArrowText;
899
                                                }
900

  
901
                                                try
902
                                                {
903
                                                    if (control.fontConfig.Count == 4)
904
                                                    {
905
                                                        fontsize = Convert.ToDouble(control.fontConfig[3]);
906
                                                    }
907

  
908
                                                    //강인구 수정(2018.04.17)
909
                                                    var TextStyle = Common.StringToFont.ConFontStyle(control.fontConfig[1]);
910

  
911
                                                    FontStyle fontStyle = FontStyles.Normal;
912
                                                    if (FontStyles.Italic == TextStyle)
913
                                                    {
914
                                                        fontStyle = FontStyles.Italic;
915
                                                    }
916

  
917
                                                    FontWeight fontWeight = FontWeights.Black;
918

  
919
                                                    var TextWeight = Common.StringToFont.ConFontWeight(control.fontConfig[2]);
920
                                                    if (FontWeights.Bold == TextWeight)
921
                                                    {
922
                                                        fontWeight = FontWeights.Bold;
923
                                                    }
924

  
925
                                                    TextDecorationCollection decoration = TextDecorations.Baseline;
926
                                                    if (control.fontConfig.Count() == 5)
927
                                                    {
928
                                                        decoration = TextDecorations.Underline;
929
                                                    }
930

  
931 888
                                                if (control.isTrans)
932 889
                                                {
933 890
                                                    //인구 수정 Arrow Text Style적용 되도록 변경
934
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), 
935
                                                        newStartPoint, tempMidPoint, 
891
                                                    Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight),
892
                                                        newStartPoint, tempMidPoint,
936 893
                                                        LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
937 894
                                                }
938 895
                                                else
......
960 917
                                                            }
961 918
                                                        }
962 919
                                                        //인구 수정 Arrow Text Style적용 되도록 변경
963
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), 
920
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight),
964 921
                                                            tempStartPoint, testP,
965 922
                                                            LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight,
966 923
                                                        new FontFamily(), fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
......
968 925
                                                    else
969 926
                                                    {
970 927
                                                        //인구 수정 Arrow Text Style적용 되도록 변경
971
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight), 
928
                                                        Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawString_ArrowText(tempEndPoint, new Point(tempEndPoint.X + control.BoxWidth / scaleWidth, tempEndPoint.Y - control.BoxHeight / scaleHeight),
972 929
                                                            newStartPoint, newMidPoint,
973 930
                                                            LineSize, contentByte, _SetColor, Paint, fontsize, isHighlight, new FontFamily(), fontStyle, fontWeight, decoration, Text, sizeF, Opacity, Angle);
974
                                                        }
975 931
                                                    }
976 932
                                                }
977
                                                catch (Exception ex)
978
                                                {
979

  
980
                                                }
981 933
                                            }
982
                                            break;
983
                                        #endregion
984
                                        #region SignControl
985
                                        case "SignControl":
986
                                            using (S_SignControl control = JsonSerializerHelper.JsonDeserialize<S_SignControl>(item))
934
                                            catch (Exception ex)
987 935
                                            {
988
                                                
989
                                                double Angle = control.Angle;
990
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
991
                                                Point TopRightPoint = GetPdfPointSystem(control.TR);
992
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
993
                                                Point LeftBottomPoint = GetPdfPointSystem(control.LB);
994
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
995
                                                double Opacity = control.Opac;
996
                                                string UserNumber = control.UserNumber;
997
                                                Controls_PDF.HoneyPDFLib_DrawSet_Image.DrawSign(StartPoint, EndPoint, PointSet, contentByte, UserNumber, Angle, Opacity, finaldata.PROJECT_NO);
998
                                            }
999
                                            break;
1000
                                        #endregion
1001
                                        #region MyRegion
1002
                                        case "DateControl":
1003
                                            using (S_DateControl control = JsonSerializerHelper.JsonDeserialize<S_DateControl>(item))
1004
                                            {
1005
                                                string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
1006
                                                string Text = control.Text;
1007
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
1008
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
1009
                                                List<Point> pointSet = GetPdfPointSystem(control.PointSet);
1010
                                                SolidColorBrush FontColor = _SetColor;
1011
                                                double Angle = control.Angle;
1012
                                                double Opacity = control.Opac;
1013
                                                Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawDate(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Text, Angle, Opacity);
936

  
1014 937
                                            }
938
                                        }
1015 939
                                        break;
1016
                                        #endregion
1017
                                        #region SymControlN (APPROVED)
1018
                                        case "SymControlN":
1019
                                            using (S_SymControl control = JsonSerializerHelper.JsonDeserialize<S_SymControl>(item))
1020
                                            {
1021
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
1022
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
1023
                                                List<Point> pointSet = GetPdfPointSystem(control.PointSet);
1024
                                                SolidColorBrush FontColor = _SetColor;
1025
                                                double Angle = control.Angle;
1026
                                                double Opacity = control.Opac;
1027
                                                                                                
1028
                                                string imgpath = CommonLib.Common.GetConfigString("ApprovedImgPath", "URL", "");
1029
                                                Controls_PDF.HoneyPDFLib_DrawSet_Symbol.DrawApproval(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Angle, Opacity, imgpath);
1030
                                            }
1031
                                            break;
1032
                                        case "SymControl":
1033
                                            using (S_SymControl control = JsonSerializerHelper.JsonDeserialize<S_SymControl>(item))
1034
                                            {
1035
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
1036
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
1037
                                                List<Point> pointSet = GetPdfPointSystem(control.PointSet);
1038
                                                SolidColorBrush FontColor = _SetColor;
1039
                                                double Angle = control.Angle;
1040
                                                double Opacity = control.Opac;
1041
                                                
1042
                                                string imgpath = CommonLib.Common.GetConfigString("CheckmarkImgPath", "URL", "");
1043
                                                Controls_PDF.HoneyPDFLib_DrawSet_Symbol.DrawCheckMark(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Angle, Opacity, imgpath);
1044
                                            }
1045
                                            break;
1046
                                        #endregion
1047
                                        #region Image
1048
                                        case "ImgControl":
1049
                                            using (S_ImgControl control = JsonSerializerHelper.JsonDeserialize<S_ImgControl>(item))
1050
                                            {
1051
                                                double Angle = control.Angle;
1052
                                                Point StartPoint = GetPdfPointSystem(control.StartPoint);
1053
                                                Point TopRightPoint = GetPdfPointSystem(control.TR);
1054
                                                Point EndPoint = GetPdfPointSystem(control.EndPoint);
1055
                                                Point LeftBottomPoint = GetPdfPointSystem(control.LB);
1056
                                                List<Point> PointSet = GetPdfPointSystem(control.PointSet);
1057
                                                double Opacity = control.Opac;
1058
                                                string FilePath = control.ImagePath;
1059
                                                //Uri uri = new Uri(s.ImagePath);
940
                                    #endregion
941
                                    #region SignControl
942
                                    case "SignControl":
943
                                        using (S_SignControl control = JsonSerializerHelper.JsonDeserialize<S_SignControl>(item))
944
                                        {
1060 945

  
1061
                                                Controls_PDF.HoneyPDFLib_DrawSet_Image.DrawImage(StartPoint, EndPoint, PointSet, contentByte, FilePath, Angle, Opacity);
1062
                                            }
1063
                                            break;
1064
                                        #endregion
1065
                                        default:
1066
                                            break;
1067
                                    }
1068
                                }
1069
                                catch (Exception ex)
1070
                                {
1071
                                    
946
                                            double Angle = control.Angle;
947
                                            Point StartPoint = GetPdfPointSystem(control.StartPoint);
948
                                            Point TopRightPoint = GetPdfPointSystem(control.TR);
949
                                            Point EndPoint = GetPdfPointSystem(control.EndPoint);
950
                                            Point LeftBottomPoint = GetPdfPointSystem(control.LB);
951
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
952
                                            double Opacity = control.Opac;
953
                                            string UserNumber = control.UserNumber;
954
                                            Controls_PDF.HoneyPDFLib_DrawSet_Image.DrawSign(StartPoint, EndPoint, PointSet, contentByte, UserNumber, Angle, Opacity, finaldata.PROJECT_NO);
955
                                        }
956
                                        break;
957
                                    #endregion
958
                                    #region MyRegion
959
                                    case "DateControl":
960
                                        using (S_DateControl control = JsonSerializerHelper.JsonDeserialize<S_DateControl>(item))
961
                                        {
962
                                            string[] data2 = control.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
963
                                            string Text = control.Text;
964
                                            Point StartPoint = GetPdfPointSystem(control.StartPoint);
965
                                            Point EndPoint = GetPdfPointSystem(control.EndPoint);
966
                                            List<Point> pointSet = GetPdfPointSystem(control.PointSet);
967
                                            SolidColorBrush FontColor = _SetColor;
968
                                            double Angle = control.Angle;
969
                                            double Opacity = control.Opac;
970
                                            Controls_PDF.HoneyPDFLib_DrawSet_Text.DrawDate(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Text, Angle, Opacity);
971
                                        }
972
                                        break;
973
                                    #endregion
974
                                    #region SymControlN (APPROVED)
975
                                    case "SymControlN":
976
                                        using (S_SymControl control = JsonSerializerHelper.JsonDeserialize<S_SymControl>(item))
977
                                        {
978
                                            Point StartPoint = GetPdfPointSystem(control.StartPoint);
979
                                            Point EndPoint = GetPdfPointSystem(control.EndPoint);
980
                                            List<Point> pointSet = GetPdfPointSystem(control.PointSet);
981
                                            SolidColorBrush FontColor = _SetColor;
982
                                            double Angle = control.Angle;
983
                                            double Opacity = control.Opac;
984

  
985
                                            string imgpath = CommonLib.Common.GetConfigString("ApprovedImgPath", "URL", "");
986
                                            Controls_PDF.HoneyPDFLib_DrawSet_Symbol.DrawApproval(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Angle, Opacity, imgpath);
987
                                        }
988
                                        break;
989
                                    case "SymControl":
990
                                        using (S_SymControl control = JsonSerializerHelper.JsonDeserialize<S_SymControl>(item))
991
                                        {
992
                                            Point StartPoint = GetPdfPointSystem(control.StartPoint);
993
                                            Point EndPoint = GetPdfPointSystem(control.EndPoint);
994
                                            List<Point> pointSet = GetPdfPointSystem(control.PointSet);
995
                                            SolidColorBrush FontColor = _SetColor;
996
                                            double Angle = control.Angle;
997
                                            double Opacity = control.Opac;
998

  
999
                                            string imgpath = CommonLib.Common.GetConfigString("CheckmarkImgPath", "URL", "");
1000
                                            Controls_PDF.HoneyPDFLib_DrawSet_Symbol.DrawCheckMark(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Angle, Opacity, imgpath);
1001
                                        }
1002
                                        break;
1003
                                    #endregion
1004
                                    #region Image
1005
                                    case "ImgControl":
1006
                                        using (S_ImgControl control = JsonSerializerHelper.JsonDeserialize<S_ImgControl>(item))
1007
                                        {
1008
                                            double Angle = control.Angle;
1009
                                            Point StartPoint = GetPdfPointSystem(control.StartPoint);
1010
                                            Point TopRightPoint = GetPdfPointSystem(control.TR);
1011
                                            Point EndPoint = GetPdfPointSystem(control.EndPoint);
1012
                                            Point LeftBottomPoint = GetPdfPointSystem(control.LB);
1013
                                            List<Point> PointSet = GetPdfPointSystem(control.PointSet);
1014
                                            double Opacity = control.Opac;
1015
                                            string FilePath = control.ImagePath;
1016
                                            //Uri uri = new Uri(s.ImagePath);
1017

  
1018
                                            Controls_PDF.HoneyPDFLib_DrawSet_Image.DrawImage(StartPoint, EndPoint, PointSet, contentByte, FilePath, Angle, Opacity);
1019
                                        }
1020
                                        break;
1021
                                    #endregion
1022
                                    default:
1023
                                        break;
1072 1024
                                }
1073 1025
                            }
1026
                            catch (Exception ex)
1027
                            {
1028

  
1029
                            }
1074 1030
                        }
1075
                        pdfStamper.Outlines = root;
1076
                        pdfStamper.Close();
1077
                        pdfReader.Close();
1078
                    } 
1031
                    }
1032
                    pdfStamper.Outlines = root;
1033
                    pdfStamper.Close();
1034
                    pdfReader.Close();
1079 1035
                }
1080
                #endregion
1081 1036
            }
1037
            #endregion
1082 1038

  
1083 1039
            try
1084 1040
            {

내보내기 Unified diff

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