4
현재 PDF 파일을 생성하기 위해 XSL-FO에서 작업 중입니다. 사실 XML과 XSL을 분리하는 대신 FO 객체를 직접 작성하고 있습니다. 그것은 현재 우리의 요구 사항입니다. 텍스트를 올바르게 정렬 할 수 있습니다. 그러나, 우리가 테이블을 만들 때, 전체 테이블을 보이지 않는 중심에 두면서. 무엇이 문제 일 수 있습니다. 여기에 내가 시도한 코드를 게시하고있다.XSL-FO 테이블 센터
<fo:block>
<fo:table width="80%"
border-style="solid"
border-width="1pt"
border-color="#69468D"
table-layout="fixed"
space-before="10px"
space-after="10px"
text-align="start">
<fo:table-header line-height="10pt"
font-size="6pt"
background-color="#69468D"
color="white"
padding-top="3pt">
<fo:table-row>
<fo:table-cell border-top-color="solid pruple" border-left-color="solid pruple" border="1pt solid white">
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt solid pruple" padding="4pt">
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt solid pruple" padding="4pt">
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt solid pruple" padding="4pt">
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt solid pruple" padding="4pt">
<fo:block>text</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt solid pruple" padding="4pt">
<fo:block>Text</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body line-height="5pt"
font-size="6pt">
<fo:table-row padding-top="3pt">
<fo:table-cell text-align="center">
<fo:block>
hi
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center">
<fo:block>
hi
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>