# PUBDOCBODY (유통문서) 본문저장 관련 문의드립니다.

**URL:** <https://forum.developer.hancom.com/t/pubdocbody/2286>\
**Category:** 웹한글 기안기\
**Created:** [3월 5, 2025, 4:11오전 UTC](https://forum.developer.hancom.com/t/pubdocbody/2286 "2025-03-05T04:11:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user174](https://avatars.discourse-cdn.com/v4/letter/u/9de0a6/32.png) [@user174](https://forum.developer.hancom.com/u/user174)\
**Post date:** [3월 5, 2025, 4:11오전 UTC](https://forum.developer.hancom.com/t/pubdocbody/2286/1 "2025-03-05T04:11:36Z")

</div>

PUBDOCBODY를 통해 문서 본문 내용을 저장할 때, 본문 스타일이 반영되지 않는 증상 문의드립니다.

문제 상황은 아래와 같습니다.

1. 아래 이미지와 같은 본문이 존재  
(본문 field명 /pubdoc/body/content)  

2. PUBDOCBODY 타입으로 saveAs API를 수행했을 때, 서버 내에 생성되는 본문 xml 정보 상에 본문 스타일 정보(백그라운드 컬러에 대한 정보)를 확인할 수 없음

```auto
<?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>

```

1. 수신측에서 보이는 문서 본문( **각 row에 대한 height 값이 동일하지 않음, 셀 헤더의 백그라운드 색상 적용이 되지 않음** )  
 ![2](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/a/a399c2db93727ab99fdbf92ab7486e53c06c7720.png)

수신측에서 보이는 문서에서 각 셀별로 height 값이 더 크게 작용하는 듯한 증상으로 인해 문서 결문을 침범해서 본문이 보이는 사례도 발생하고 있습니다.

 ![3](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/2/218bec756128c58b6ca88f2bbd4d99cf4d7f21cb.png)

해당 내용 확인 부탁드립니다.  
그리고 웹한글기안기에서 기술적 제약으로 지원하지 않는 부분이라면 예시 규격이나 가이드라인을 주시면 좋겠습니다.  
유통문서 작성 시, 표 작성 시 이러한 규격외에는 지원하지 않는다 등의 가이드라인을 주시면 적어도 이렇게 문서가 심하게 틀어지는일은 적어질 것 같습니다.

---

<div class="post-metadata">

**Author:** ![jhbang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jhbang](https://forum.developer.hancom.com/u/jhbang)\
**Post date:** [3월 5, 2025, 10:00오전 UTC](https://forum.developer.hancom.com/t/pubdocbody/2286/2 "2025-03-05T10:00:01Z")

</div>

안녕하세요.

공문서 유통문서 표준은 복잡한 서식 구조는 제외한 단순 형식의 표준을 가지고 있습니다.  
**행안부에서 배포한 유통문서 표준안** 을 보시면 셀의 백그라운드 색에 대한 속성이 없는 것을 확인하실 수 있습니다.

[20100903\_정부전자문서유통 표준(행안부고시 제2010-55호)[1].hwp](https://forum.developer.hancom.com/uploads/short-url/6uUaPYdFMZGELkadvAz3xz7CMka.hwp) (515 KB)

```auto
2. 공문서 본문구조 정의(xhtml4pubdoc.mod)
...
<!ATTLIST tbody
  %coreattrs;
  %cellhalign;
  %cellvalign;
  >

<!ATTLIST tr
  %coreattrs;
  %cellhalign;
  %cellvalign;
  >

<!ATTLIST th
  %coreattrs;
  abbr CDATA #IMPLIED
  axis CDATA #IMPLIED
  headers IDREFS #IMPLIED
  scope (row|col|rowgroup|colgroup) #IMPLIED
  rowspan CDATA "1"
  colspan CDATA "1"
  %cellhalign;
  %cellvalign;
  nowrap (nowrap) #IMPLIED
  width CDATA #IMPLIED
  height CDATA #IMPLIED
  >

<!ATTLIST td
  %coreattrs;
  abbr CDATA #IMPLIED
  axis CDATA #IMPLIED
  headers IDREFS #IMPLIED
  scope (row|col|rowgroup|colgroup) #IMPLIED
  rowspan CDATA "1"
  colspan CDATA "1"
  %cellhalign;
  %cellvalign;
  nowrap (nowrap) #IMPLIED
  width CDATA #IMPLIED
  height CDATA #IMPLIED
  >

```

감사합니다.

---

<div class="post-metadata">

**Author:** ![user174](https://avatars.discourse-cdn.com/v4/letter/u/9de0a6/32.png) [@user174](https://forum.developer.hancom.com/u/user174)\
**Post date:** [3월 6, 2025, 2:00오전 UTC](https://forum.developer.hancom.com/t/pubdocbody/2286/3 "2025-03-06T02:00:29Z")

</div>

답변 감사합니다.

셀 백그라운드 색상 누락에 대해서는 이해 했는데요,  
테이블 높이에 대한 답변이 없는 것 같습니다.  
표가 왜 깨지는건지 알 수 있을까요?

확인 부탁드립니다.

---

<div class="post-metadata">

**Author:** ![jhbang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jhbang](https://forum.developer.hancom.com/u/jhbang)\
**Post date:** [3월 6, 2025, 2:17오전 UTC](https://forum.developer.hancom.com/t/pubdocbody/2286/4 "2025-03-06T02:17:03Z")

</div>

어떤 케이스인지 파일을 첨부해주시면 확인해보겠습니다.

---

<div class="post-metadata">

**Author:** ![ZHSSCT](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@ZHSSCT](https://forum.developer.hancom.com/u/ZHSSCT)\
**Post date:** [4월 10, 2026, 2:22오전 UTC](https://forum.developer.hancom.com/t/pubdocbody/2286/5 "2026-04-10T02:22:01Z")

</div>

비슷한 상황으로 line-height 의 mm 단위를 인식 하지 못합니다.  
테이블의 높이도 mm 로 기술되어 있어서 인식 하지 못하는거 아닐까 합니다.  
mm 단위를 인식 할 수 있는 방법이 있을까요?
