PUBDOCBODY를 통해 문서 본문 내용을 저장할 때, 본문 스타일이 반영되지 않는 증상 문의드립니다.
문제 상황은 아래와 같습니다.
-
아래 이미지와 같은 본문이 존재
(본문 field명 /pubdoc/body/content)
-
PUBDOCBODY 타입으로 saveAs API를 수행했을 때, 서버 내에 생성되는 본문 xml 정보 상에 본문 스타일 정보(백그라운드 컬러에 대한 정보)를 확인할 수 없음
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE pubdoc [<!ENTITY nbsp " ">]>
<pubdoc>
<body>
<content>
<p style="font-family:돋움;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="adjust">1. </p>
<p style="font-family:돋움;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="adjust"> </p>
<p style="font-family:돋움;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="adjust">
<table border="1" width="139.2562mm" height="32.9152mm" cellspacing="0.0000mm" cellpadding="1.7992mm">
<tbody>
<tr>
<td rowspan="5" colspan="1" height="32.9152mm" width="23.7885mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>테스트 표</b></p></td>
<td rowspan="1" colspan="1" height="5.2283mm" width="42.7580mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>1 – 2</b></p></td>
<td rowspan="1" colspan="1" height="5.2283mm" width="72.7097mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>테스트 1</b></p></td>
</tr>
<tr>
<td rowspan="1" colspan="1" height="12.0019mm" width="42.7580mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>2 - 3</b></p></td>
<td rowspan="1" colspan="1" height="12.0019mm" width="72.7097mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>테스트 2</b></p></td>
</tr>
<tr>
<td rowspan="1" colspan="1" height="5.2283mm" width="42.7580mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>3 - 4</b></p></td>
<td rowspan="1" colspan="1" height="5.2283mm" width="72.7097mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>테스트 3</b></p></td>
</tr>
<tr>
<td rowspan="1" colspan="1" height="5.2283mm" width="42.7580mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>4 - 5</b></p></td>
<td rowspan="1" colspan="1" height="5.2283mm" width="72.7097mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>테스트 4</b></p></td>
</tr>
<tr>
<td rowspan="1" colspan="1" height="5.2283mm" width="42.7580mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>5 - 6</b></p></td>
<td rowspan="1" colspan="1" height="5.2283mm" width="72.7097mm" valign="middle">
<p style="font-family:함초롬바탕;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="center"><b>테스트 5</b></p></td>
</tr>
</tbody>
</table> </p>
<p style="font-family:돋움;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="adjust"> </p>
<p style="font-family:돋움;font-size:12pt;line-height:6.7735mm;margin-left:0.0000mm;margin-right:0.0000mm;margin-top:0.0000mm;margin-bottom:0.0000mm;" align="adjust"></p>
</content>
</body>
</pubdoc>
- 수신측에서 보이는 문서 본문(각 row에 대한 height 값이 동일하지 않음, 셀 헤더의 백그라운드 색상 적용이 되지 않음)
수신측에서 보이는 문서에서 각 셀별로 height 값이 더 크게 작용하는 듯한 증상으로 인해 문서 결문을 침범해서 본문이 보이는 사례도 발생하고 있습니다.
해당 내용 확인 부탁드립니다.
그리고 웹한글기안기에서 기술적 제약으로 지원하지 않는 부분이라면 예시 규격이나 가이드라인을 주시면 좋겠습니다.
유통문서 작성 시, 표 작성 시 이러한 규격외에는 지원하지 않는다 등의 가이드라인을 주시면 적어도 이렇게 문서가 심하게 틀어지는일은 적어질 것 같습니다.