The coordinates x/y have to be defined: outer, inner, center of the border line?
PDF renderer FOP-0.20.1 o draws a box with 4 filled rectangles - each border line is a filled rectangle. The SVG trace below demonstrates this. o 4 calls to method addFilledRect(int x, int y, int w, int h, PDFPathPaint fill) in PDFRenderer (x,y) is the center of the line bbbbbbbbbbbb border height = 3 cccccccccccc-----------------------center (y for horizontal line) bbbbbbbbbbbb Other renderers might have to operate with (y +- h/2), (x +- w/2) <svg width="595pt" height="841pt" xmlns="http://www.w3.org/2000/svg"> <rect x="51.023pt" y="100.213pt" width="255.117pt" height="2.834pt" fill="rgb(255.0,0.0,0.0)"/> <rect x="48.189pt" y="100.213pt" width="2.834pt" height="43.669pt" fill="rgb(255.0,0.0,0.0)"/> <rect x="306.14pt" y="100.213pt" width="2.834pt" height="43.669pt" fill="rgb(255.0,0.0,0.0)"/> <rect x="51.023pt" y="141.048pt" width="255.117pt" height="2.834pt" fill="rgb(255.0,0.0,0.0)"/> Hansuli Anderegg
tables.pdf
Description: Adobe PDF document
<?xml version="1.0" encoding="ISO-8859-1"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:src="UBSXMLSrc"> <fo:layout-master-set> <fo:simple-page-master master-name="seiten" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="1.8cm" margin-right="2.0cm"> <fo:region-before region-name="s2ff-before" extent="2.0cm" /> <fo:region-body margin-top="1.0cm" margin-bottom="2.0cm" /> <fo:region-after region-name="s2ff-after" extent="2.0cm" /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-name="seiten" initial-page-number="1"> <fo:static-content flow-name="s2ff-after"> <fo:block font-size="11pt" font-family="sans-serif" line-height="13pt" text-align="center" padding-top="12mm"> <fo:page-number />/<fo:page-number-citation ref-id="IDAWEF4" /> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="11pt" font-family="sans-serif" line-height="13pt" text-align="start">table border - cell padding, border</fo:block> <fo:block> <fo:table space-after.optimum="13pt" space-before.optimum="3pt" border-color="red" border-width="1.0mm" border-style="solid" font-size="10pt" font-family="sans-serif" text-align="start"> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-body> <fo:table-row keep-with-next="always"> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="solid" border-color="yellow"> <fo:block>cell 1.1</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 1.2</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 1.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 2.1</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.2mm" border-style="dotted" border-color="blue"> <fo:block>cell 2.2</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 2.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 3.1</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 3.2</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dashed" border-color="yellow"> <fo:block>cell 3.3</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> <fo:block font-size="11pt" font-family="sans-serif" line-height="13pt" text-align="start">table border, padding top/bottom - cell padding, border</fo:block> <fo:block> <fo:table space-after.optimum="13pt" space-before.optimum="3pt" border-color="red" border-width="1.0mm" border-style="solid" padding-top="6pt" padding-bottom="6pt" font-size="10pt" font-family="sans-serif" text-align="start"> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-body> <fo:table-row keep-with-next="always"> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="solid" border-color="yellow"> <fo:block>cell 1.1</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 1.2</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 1.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 2.1</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.2mm" border-style="dotted" border-color="blue"> <fo:block>cell 2.2</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 2.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 3.1</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 3.2</fo:block> </fo:table-cell> <fo:table-cell padding-left="6pt" border-width="0.5mm" border-style="dashed" border-color="yellow"> <fo:block>cell 3.3</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> <fo:block font-size="11pt" font-family="sans-serif" line-height="13pt" text-align="start">table border, padding left/right - cell border</fo:block> <fo:block> <fo:table space-after.optimum="13pt" space-before.optimum="3pt" border-color="red" border-width="1.0mm" border-style="solid" padding-left="6pt" padding-right="6pt" font-size="10pt" font-family="sans-serif" text-align="start"> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-body> <fo:table-row keep-with-next="always"> <fo:table-cell border-width="0.5mm" border-style="solid" border-color="yellow"> <fo:block>cell 1.1</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 1.2</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 1.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 2.1</fo:block> </fo:table-cell> <fo:table-cell border-width="0.2mm" border-style="dotted" border-color="blue"> <fo:block>cell 2.2</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 2.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 3.1</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 3.2</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="dashed" border-color="yellow"> <fo:block>cell 3.3</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> <fo:block font-size="11pt" font-family="sans-serif" line-height="13pt" text-align="start">table border - cell 0</fo:block> <fo:block> <fo:table space-after.optimum="13pt" space-before.optimum="3pt" border-color="red" border-width="1.0mm" border-style="solid" font-size="10pt" font-family="sans-serif" text-align="start"> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-body> <fo:table-row keep-with-next="always"> <fo:table-cell > <fo:block>cell 1.1</fo:block> </fo:table-cell> <fo:table-cell > <fo:block>cell 1.2</fo:block> </fo:table-cell> <fo:table-cell > <fo:block>cell 1.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell > <fo:block>cell 2.1</fo:block> </fo:table-cell> <fo:table-cell > <fo:block>cell 2.2</fo:block> </fo:table-cell> <fo:table-cell > <fo:block>cell 2.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell > <fo:block>cell 3.1</fo:block> </fo:table-cell> <fo:table-cell > <fo:block>cell 3.2</fo:block> </fo:table-cell> <fo:table-cell > <fo:block>cell 3.3</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> <fo:block font-size="11pt" font-family="sans-serif" line-height="13pt" text-align="start">table 0 - cell border</fo:block> <fo:block> <fo:table space-after.optimum="13pt" space-before.optimum="3pt" border-color="red" font-size="10pt" font-family="sans-serif" text-align="start"> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-body> <fo:table-row keep-with-next="always"> <fo:table-cell border-width="0.5mm" border-style="solid" border-color="yellow"> <fo:block>cell 1.1</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 1.2</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 1.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell border-width="0.5mm" border-style="dashed" border-color="green"> <fo:block>cell 2.1</fo:block> </fo:table-cell> <fo:table-cell border-width="0.2mm" border-style="dotted" border-color="blue"> <fo:block>cell 2.2</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 2.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell border-width="0.5mm" border-style="dotted" border-color="yellow"> <fo:block>cell 3.1</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="solid" border-color="green"> <fo:block>cell 3.2</fo:block> </fo:table-cell> <fo:table-cell border-width="0.5mm" border-style="dashed" border-color="yellow"> <fo:block>cell 3.3</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> <fo:block font-size="11pt" font-family="sans-serif" line-height="13pt" text-align="start">table borders - cell borders dependent from position</fo:block> <fo:block> <fo:table space-after.optimum="13pt" space-before.optimum="3pt" border-color="red" border-width="1.0mm" border-style="solid" font-size="10pt" font-family="sans-serif" text-align="start"> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-column column-width="30mm" /> <fo:table-body> <fo:table-row keep-with-next="always"> <fo:table-cell border-style="solid" border-top-width="0.0mm" border-bottom-width="0.5mm" border-left-width="0.0mm" border-right-width="0.5mm"> <fo:block>cell 1.1</fo:block> </fo:table-cell> <fo:table-cell border-style="solid" border-top-width="0.0mm" border-bottom-width="0.5mm" border-left-width="0.5mm" border-right-width="0.5mm"> <fo:block>cell 1.2</fo:block> </fo:table-cell> <fo:table-cell border-style="solid" border-top-width="0.0mm" border-bottom-width="0.5mm" border-left-width="0.5mm" border-right-width="0.0mm"> <fo:block>cell 1.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell border-style="solid" border-top-width="0.0mm" border-bottom-width="0.5mm" border-left-width="0.0mm" border-right-width="0.5mm"> <fo:block>cell 2.1</fo:block> </fo:table-cell> <fo:table-cell border-style="solid" border-top-width="0.2mm" border-bottom-width="0.5mm" border-left-width="0.5mm" border-right-width="0.5mm"> <fo:block>cell 2.2</fo:block> </fo:table-cell> <fo:table-cell border-style="solid" border-top-width="0.5mm" border-bottom-width="0.5mm" border-left-width="0.5mm" border-right-width="0.0mm"> <fo:block>cell 2.3</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row keep-with-next="always"> <fo:table-cell border-style="solid" border-top-width="0.5mm" border-bottom-width="0.0mm" border-left-width="0.0mm" border-right-width="0.5mm"> <fo:block>cell 3.1</fo:block> </fo:table-cell> <fo:table-cell border-style="solid" border-top-width="0.5mm" border-bottom-width="0.0mm" border-left-width="0.5mm" border-right-width="0.5mm"> <fo:block>cell 3.2</fo:block> </fo:table-cell> <fo:table-cell border-style="solid" border-top-width="0.5mm" border-bottom-width="0.0mm" border-left-width="0.5mm" border-right-width="0.0mm"> <fo:block>cell 3.3</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]