SetTextFile API를 통해 HTML 형태의 데이터를 웹한글기안기 누름틀에 삽입 시
표가 위, 아래에 있는 문장과 겹치는 현상이 발생하여 확인 요청드립니다.
웹한글기안기 테스트 버전 : 10.80.0.2803
이슈 발생하는 html 데이터를 html 뷰어 사이트에서 조회했을때 화면
SetTextFile API 동작 후 화면
테스트 데이터
HwpCtrl.MoveToField('_F_CONTENTS_',true,true,false);
let data8 = `<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;font-size:12pt;font-family:'맑은 고딕';;">1. 귀 기관의 무궁한 발전을 기원합니다. </p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;font-family:'맑은 고딕';font-size:12pt;;">2. 「2026년 찾아가는 서비스 접점 인력교육」 일정을 다음과 같이 변경하고자 합니다. </p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;font-family:'맑은 고딕';font-size:12pt;;"> </p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;font-family:'맑은 고딕';font-size:12pt;;"> 가. 변경내용</p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;text-align:center;"> </p>
<table cellspacing="0" cellpadding="3" border="1" width="655px">
<colgroup>
<col width="149px" />
<col width="100px" />
<col width="101px" />
<col width="213px" />
<col width="111px" />
</colgroup>
<tbody>
<tr>
<td width="142px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;text-align:center;font-size:11pt;;"><b>기관명</b></p></td>
<td width="93px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;text-align:center;font-size:11pt;;"><b>당초 일정</b></p></td>
<td width="94px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;text-align:center;font-size:11pt;;"><b>변경 일정</b></p></td>
<td width="206px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;text-align:center;font-size:11pt;;"><b>사유 </b></p></td>
<td width="104px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;text-align:center;font-size:11pt;;"><b>강사 협의 여부</b></p></td>
</tr>
<tr>
<td width="142px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;text-align:center;font-size:11pt;font-family:'맑은 고딕';;">(재)OO문화재단</p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;text-align:center;font-size:11pt;font-family:'맑은 고딕';;">OOOO센터</p></td>
<td width="93px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;text-align:center;font-size:11pt;font-family:'맑은 고딕';;">6. OO.(수)</p></td>
<td width="94px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;text-align:center;font-size:11pt;font-family:'맑은 고딕';;"><b>6. OO.(월)</b></p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;text-align:center;font-size:11pt;font-family:'맑은 고딕';;"><b>14:00</b></p></td>
<td width="206px" height="20px">
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;text-align:center;font-size:11pt;font-family:'맑은 고딕';;">전시 개막 전 OOOO 위한 교육 일정 변경</p></td>
<td width="104px" height="20px">
<p style="font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.5;text-align:center;font-family:'맑은 고딕';font-size:11pt;font-family:'맑은 고딕';;">○</p></td>
</tr>
</tbody>
</table>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;font-family:'맑은 고딕';;"> </p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;font-family:'맑은 고딕';font-size:12pt;;font-family:'맑은 고딕';;"> 나. 문의 : OO문화재단 OOOO센터 갤러리 담당자 OO(00-0000-0000). 끝. </p>
<p style="font-family:돋움체;font-size:10pt;color:rgb(0, 0, 0);margin-top:0px;margin-bottom:0px;line-height:1.2;font-family:'맑은 고딕';;"> </p>`;
HwpCtrl.SetTextFile(data8,'HTML','insertfile');
html → 한글 변환의 경우 100% 동일하게 보이도록 하는 것은 불가능한 것은 알고 있으나
문서유통에서는 html → 한글 변환 작업이 필요하여 해당 이슈와 같이 너무 많이 틀어지는 부분에 대해
개선이 가능할지 문의드립니다.


