I am currently working on XSL-FO to create PDF files. Infact I am directly writing an FO object instead of separating XML and XSL. This is our requirement at present. We can align the text correctly. But, when we make a table, keeping it in the center, not showing the full table. What could be the problem. Here I am posting the code I tried:
<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>
source share