웹한글기안기 SetTextFile API 실행 시
결과가 이상하게 조회되어 관련 현상 문의드립니다.
10.80.0.1829 버전 및 한컴포럼 예제 사이트(웹한글 기안기 예제 | 한컴디벨로퍼)에서는 정상적으로 보이고 있습니다.
10.80.0.2782 버전에서는 내용이 압축되어 보여지고 있습니다.
[테스트 방법]
- 누름틀 생성 - 필드명: F_CONTENTS
- 아래 명령어대로 실행
let temp = ` <p>
<p style="line-length : 4.76mm; font-family: 굴림체; font-size: 12pt; margin-top: 0mm; margin-bottom: 0mm;"> </p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
1. 귀 기관의 무궁한 발전을 기원합니다.</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
신규 임용 예정자에 대해 전력조회를 요청드리오니 협조를 부탁드립니다.</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
<b>가. 대상자 개요</b> </p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
○ 응시직군 : 000</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
○ 성명/생년월일 : 00 / 0000.00.00.</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px;">
</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
<b> 나. 회신 협조요청 기한:</b> '00.00.00.(목)까지</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
<b>다. 회신방법:</b> 붙임 양식을 작성하여 공문 또는 이메일() 회신</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
</p>
<p
style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-transform: none; widows: 2; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; font-family: 굴림체; font-size: 13.3333px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); line-height: 1.8; text-indent: 0px; margin: 0px; word-spacing: 0px; display: block; overflow-wrap: break-word;">
붙임: (양식) 전력 조회 회보서 1부. 끝.</p>
</p>`;
HwpCtrl.MoveToField('_F_CONTENTS_',true,true,false);
HwpCtrl.SetTextFile(temp,'HTML','insertfile');
웹한글기안기 SetTextFile API 이슈인지
아니면 API에 첨부하는 html내용이 문제인지 확인 부탁드립니다.
html 내용의 경우 뷰어로 볼때 틀어져서 보이지 않고 있습니다.