SetTextFile API 동작 문의

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. 귀 기관의 무궁한 발전을 기원합니다.&nbsp;</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.&nbsp;「2026년 찾아가는 서비스 접점 인력교육」 일정을 다음과 같이 변경하고자 합니다.&nbsp;</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;;">&nbsp;</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;;">&nbsp; 가. 변경내용</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;">&nbsp;</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>사유&nbsp;</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:'맑은 고딕';;">&nbsp;</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:'맑은 고딕';;">&nbsp; 나. 문의 : OO문화재단 OOOO센터 갤러리 담당자 OO(00-0000-0000).&nbsp; 끝.&nbsp;</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:'맑은 고딕';;">&nbsp;</p>`;


HwpCtrl.SetTextFile(data8,'HTML','insertfile');


html → 한글 변환의 경우 100% 동일하게 보이도록 하는 것은 불가능한 것은 알고 있으나

문서유통에서는 html → 한글 변환 작업이 필요하여 해당 이슈와 같이 너무 많이 틀어지는 부분에 대해

개선이 가능할지 문의드립니다.

안녕하세요.

사용하시는 기안기는 v1 제품으로 보입니다.

웹한글기안기 v2 제품으로 테스트를 진행하면 100% 동일하지는 않지만 많이 개선 되었습니다.

웹한글기안기 v2 제품 문의는 파트너사 또는 한컴 고객지원을 통해 요청 부탁드립니다.
고객지원: 문의하기
감사합니다.