프로젝트

일반

사용자정보

개정판 7aa36857

ID7aa3685737187b1949a68711513c0c67c1abce99
상위 d5e3aa15
하위 9baec69f

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

issue #937: 사용자가 Comment한 위치가 아닌 다른 곳에 Comment가 생성되는 현상 수정

Change-Id: I612de59d2568963d5e68557e7854a4437be3e8a3

차이점 보기:

FinalService/KCOM_FinalService/KCOM_FinalService/KCOM_FinalService.csproj
5 5
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6 6
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7 7
    <ProjectGuid>{2BE3F054-D494-4712-927F-47E2FFB52170}</ProjectGuid>
8
    <OutputType>WinExe</OutputType>
8
    <OutputType>Exe</OutputType>
9 9
    <RootNamespace>KCOM_FinalService</RootNamespace>
10 10
    <AssemblyName>KCOM_FinalService</AssemblyName>
11 11
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs
473 473
                                mediaBox = pdfReader.GetPageSize(markupItem.PAGENUMBER);
474 474
                                var cropBox = pdfReader.GetCropBox(markupItem.PAGENUMBER);                                
475 475

  
476
                                if (cropBox != null && cropBox.Width < mediaBox.Width || cropBox.Height < mediaBox.Height)
476
                                /// media box와 crop box가 다를 경우 media box를 crop box와 일치시킨다
477
                                if (cropBox != null && 
478
                                    (cropBox.Left != mediaBox.Left || cropBox.Top != mediaBox.Top || cropBox.Right != mediaBox.Right || cropBox.Bottom != mediaBox.Bottom))
477 479
                                {
480
                                    PdfDictionary dict = pdfReader.GetPageN(markupItem.PAGENUMBER);
481

  
482
                                    PdfArray oNewMediaBox = new PdfArray();
483
                                    oNewMediaBox.Add(new PdfNumber(cropBox.Left));
484
                                    oNewMediaBox.Add(new PdfNumber(cropBox.Top));
485
                                    oNewMediaBox.Add(new PdfNumber(cropBox.Right));
486
                                    oNewMediaBox.Add(new PdfNumber(cropBox.Bottom));
487
                                    dict.Put(PdfName.MEDIABOX, oNewMediaBox);
488

  
478 489
                                    pdfSize = cropBox; 
479 490
                                }
480 491
                                scaleWidth = float.Parse(currentPage.PAGE_WIDTH) / pdfSize.Width;
......
1098 1109
                    return true;
1099 1110
                }
1100 1111
            }
1101
            catch (Exception)
1112
            catch (Exception ex)
1102 1113
            {
1103
                throw;
1114
                throw ex;
1104 1115
            }
1105 1116
            return false;
1106 1117
        }

내보내기 Unified diff

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