Just an idea: You could try to use table-header and table-footer and
additional columns left and right to emulate the page borders. Maybe
that helps.

On 06.06.2005 19:04:21 Levesque, Gary R wrote:
> I am working a task that requires filling in columns of a pre-existing
> form. I am bringing the form in as a background image (JPG), the image
> takes up the entire 8.5 X 11 in. space of the output PDF document.  I
> then 'overlay' a table on top of the image.  If I apply the image and
> create the table in the region-body I have a problem with the margins.
> The margins for the region body are small (this allows the entire
> contents of the image to be displayed).  The table however requires
> larger margin settings as this allows the text flow to be stopped and
> then continued to the next page before the text overlaps a border that
> is located on the bottom of the image.
> 
> I have tried setting the margins differently for the region-body and the
> table but the region body settings seem to be dominant (I see no effect
> when changing the margins or the padding for the table).  I also tried
> placing the image in a different zone (region-before). I believe this
> would work as it would allow me to maintain different margin settings
> however I have been unable to get this large image to display in FOP
> with the image called into the header.  I am using FOP 0.020.5.  Code
> provided below... guidance/suggestions appreciated.
> 
> 
> 
> <fo:layout-master-set>
>       <fo:simple-page-master master-name="spm1" page-height="803.0pt"
> page-width="612.0pt">
>               <fo:region-body column-count="1" margin-bottom=".25in"
> margin-left="0.0in" margin-right=".25in" margin-top=".1in"
> region-name="region-body"
> background-image="url(C:\FOP\images\rrform_scaled.jpg)"
> background-repeat="no-repeat"/>
>               <fo:region-start extent="80pt" padding-left="20pt"
> region-name="regstart"/>
>               <fo:region-end extent="80pt" padding-right="20pt"
> region-name="regend"/>
>               <fo:region-after display-align="after" extent="51.6pt"
> padding-right="0pt" region-name="footer"/>
>       </fo:simple-page-master>
> </fo:layout-master-set>
>               
>               
>       <fo:page-sequence master-reference="spm1">
>                               
> 
> <!--=============================BODY BEGINS (REQUIRES DIFFERENT MARGIN
> SETTINGS) ============================= -->
> 
>       <fo:flow flow-name="region-body">
>               
>       
>       <!-- actual revision detail records -->
> 
> <fo:table id="rev" table-layout="fixed" > <fo:table-column
> column-width="110.0pt"/> <fo:table-column column-width="322.0pt"/>
> <fo:table-column column-width="40.0pt"/> <fo:table-column
> column-width="100.0pt"/> <fo:table-body>
> 
> <xsl:for-each select="//ApplicationData/RH_RevisionDetail">
> 
>       
> 
> <fo:table-row height="20.0pt">
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="50.8pt"
> padding-right="5.4pt">
>               <fo:block font-family="Helvetica" font-size="11.0pt">
>                       <xsl:value-of select="./SheetZone"/>
>               </fo:block>
>       </fo:table-cell>
> 
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="5.4pt" padding-       right="5.4pt"
> margin-bottom="2.0in">
>               <fo:block font-family="Helvetica" font-size="11.0pt">
>                       <xsl:value-of select="./Description"/>
>               </fo:block>
>       </fo:table-cell>
> 
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="5.4pt" padding-       right="5.4pt">
>               <fo:block font-family="Helvetica" font-size="11.0pt">
>                       <xsl:value-of
> select="concat(substring(./ReworkCode1, 1, 1), ' ',
> substring(./ReworkCode2, 1, 1))"/>
>               </fo:block>
>       </fo:table-cell>
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="5.4pt" padding-       right="5.4pt">
>       <fo:block font-family="Helvetica" font-size="11.0pt">
>               <xsl:value-of select="./References"/>
>       </fo:block>
> </fo:table-cell>
> </fo:table-row>
> 
> <!-- Add a blank line for spacing between entries -->
> 
> <fo:table-row height="10.0pt">
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="10.8pt" padding-
> right="5.4pt">
>               <fo:block font-family="Helvetica" font-size="11.0pt">
>                       <fo:leader line-height="11pt"/>
>               </fo:block>
>       </fo:table-cell>
>       
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="5.4pt" padding-       right="5.4pt">
>               <fo:block font-family="Helvetica" font-size="11.0pt">
>                       <fo:leader line-height="11pt"/>
>               </fo:block>
>       </fo:table-cell>
>       
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="5.4pt" padding-       right="5.4pt">
>               <fo:block font-family="Helvetica" font-size="11.0pt">
>                       <fo:leader line-height="11pt"/>
>               </fo:block>
>       </fo:table-cell>
>       <fo:table-cell border-bottom-style="none"
> border-left-style="none" border-top-style="none"
> border-right-style="none" padding-left="5.4pt" padding-       right="5.4pt">
>               <fo:block font-family="Helvetica" font-size="11.0pt">
>                       <fo:leader line-height="11pt"/>
>               </fo:block>
>       </fo:table-cell>
> </fo:table-row>
> </xsl:for-each>
> </fo:table-body>      
> </fo:table>
> </fo:flow>
> </fo:page-sequence>
> </xsl:template>
> </xsl:stylesheet>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to