You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Randy Paries <ra...@unitnet.com> on 2003/09/16 22:13:09 UTC
container position=absolute seems to be off
Hello,
i am working on an application that creates an .fo that represents a
page of labels
The problem is that is appears that the container position="absolute"
settings are correct, but each block container is off a little(i have
included example code below)
the first label should start 1/2 inches from the top and then each
label(block-container) should be an inch long.
it seems that the first box start 1/8" to long and the 1'
block-containers are actually 7/8's of an inch. So by the time we get
half way down the sheet the labels are all off.
I also tried a commercial FOP and it produces the same results.
thanks for any help , hints or suggestions
=============debug.fo===================================================
============
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:svg="http://www.w3.org/2000/svg"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="column-page" page-height="11.0in"
page-width="8.5in">
<fo:region-body margin-top="0in" margin-bottom="0in" margin-left="0in"
margin-right="0in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence initial-page-number="1"
master-reference="column-page">
<fo:flow flow-name="xsl-region-body">
<fo:block-container position="absolute" top="0.5in" left="0.19in"
height="1.00in" width="2.63in">
<fo:block background-color="white" border=".25pt solid black"
text-align="center">
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">Batson Medical Institute</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">JHawkins</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">Jonathan Hawkins</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">4548 Peachtree Street</fo:wrapper>
</fo:block>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="1.5in" left="0.19in"
height="1.00in" width="2.63in">
<fo:block background-color="white" border=".25pt solid black"
text-align="center">
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">Network Medical Associates</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">VJackson</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">Virginia Jackson</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">478 Alabama Avenue</fo:wrapper>
</fo:block>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="2.5in" left="0.19in"
height="1.00in" width="2.63in">
<fo:block background-color="white" border=".25pt solid black"
text-align="center">
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">Network Medical Associates2 </fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">dasdasd</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">Virginia Wolf</fo:wrapper>
</fo:block>
<fo:block line-height="14pt" text-align="left">
<fo:wrapper color="black" font-size="12pt" font-style="normal"
font-weight="normal" font-family="Times Roman"
white-space-collapse="true">478 Alabama Avenue</fo:wrapper>
</fo:block>
</fo:block>
</fo:block-container>
<fo:block id="lastPage"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
=============end========================================================
=======