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 "David P. Nesbitt" <da...@yahoo.com> on 2005/09/06 21:47:55 UTC

Weird even-odd page behavior

I am having a problem with my header only appearing on
odd pages, but I have not set up my page masters to
have even-odd characteristics.  Is this something that
happens by default in FOP?  And if so, how can I turn
it off?  I would like the header to appear on all
pages.

Here is my template that sets up the page master, etc.

Thanks in advance!

Regards,
Dave

	<xsl:template name="page-template">
		<xsl:param name="report-title"/>
		<xsl:param name="before-extent" select="'0.875in'"/>
		<xsl:param name="body-margin-top"
select="'0.625in'"/>
		<xsl:param name="page-width" select="'11in'"/>
		<xsl:param name="page-height" select="'8.5in'"/>
		<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format">
			<fo:layout-master-set>
				<fo:simple-page-master margin-right="0.5in"
margin-left="0.5in" margin-bottom="0.5in"
margin-top="0.5in" master-name="all">
					<xsl:attribute name="page-height"><xsl:value-of
select="$page-height"/></xsl:attribute>
					<xsl:attribute name="page-width"><xsl:value-of
select="$page-width"/></xsl:attribute>
					<fo:region-before region-name="header">
						<xsl:attribute name="extent"><xsl:value-of
select="$before-extent"/></xsl:attribute>
					</fo:region-before>
					<fo:region-body margin-top=""
margin-bottom="0.5in" region-name="xsl-region-body">
						<xsl:attribute name="margin-top"><xsl:value-of
select="$body-margin-top"/></xsl:attribute>
					</fo:region-body>
					<fo:region-after extent="0.5in"
region-name="footer"/>
				</fo:simple-page-master>
			</fo:layout-master-set>
			<fo:page-sequence master-reference="all">
				<fo:static-content flow-name="header">
					<fo:list-block>
						<fo:list-item>
							<fo:list-item-label>
								<fo:block text-align="left"
padding-before="0.15in">
									<fo:external-graphic
src="intelligent_systems_logo.gif" height="32pt"
width="100pt"/>
								</fo:block>
							</fo:list-item-label>
							<fo:list-item-body>
								<fo:block>
									<fo:block text-align="right"
padding-before="0.15in" font-size="14pt"
font-weight="bold" color="#0000C0"
vertical-align="middle">
										<xsl:value-of select="$report-title"/>
									</fo:block>
									<fo:block text-align="right"
padding-before="0.0675in" font-size="9pt"
font-weight="bold" color="gray" vertical-align="top">
										<xsl:call-template
name="dt:format-date-time">
											<xsl:with-param name="xsd-date-time">
												<xsl:value-of select="@dateTime"/>
											</xsl:with-param>
											<xsl:with-param name="format" select="'%B
%d, %Y at %I:%M %P'"/>
										</xsl:call-template>
									</fo:block>
								</fo:block>
							</fo:list-item-body>
						</fo:list-item>
					</fo:list-block>
					<xsl:call-template name="page-header"/>
				</fo:static-content>
				<fo:static-content flow-name="footer">
					<fo:block>
						<fo:leader leader-length="100%"
leader-pattern="rule" rule-style="solid"
rule-thickness="1pt"/>
					</fo:block>
					<fo:block text-align="right" color="gray"
font-size="9pt" font-weight="bold">
						<fo:page-number/> of <fo:page-number-citation
ref-id="end"/>
					</fo:block>
				</fo:static-content>
				<fo:flow flow-name="xsl-region-body">
					<xsl:call-template name="region-body"/>
					<fo:block id="end"/>
				</fo:flow>
			</fo:page-sequence>
		</fo:root>
	</xsl:template>



	
		
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


### Arabic Words inversion in FOP AWT output

Posted by Renan Collin <re...@cybertech.fr>.
Hello Guys,

Does anyone has already generated Arabic characters with FOP AWT ?
Arabic words are inverted in graphical output.

While using pdf renderer, it is the characters themselves that are 
inverted ... The fop team has answered me for that problem so, I tried 
AWT, but this new problem occured, Any ideas ?
Thanks

Renan COLLIN




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Weird even-odd page behavior

Posted by Renan Collin <re...@cybertech.fr>.
Hello Guys,

Does anyone has already generated Arabic characters with FOP AWT ?
Arabic words are inverted in graphical output.

While using pdf renderer, it is the characters themselves that are 
inverted ... The fop team has answered me for that problem so, I tried 
AWT, but this new problem occured, Any ideas ?
Thanks

Renan COLLIN




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Weird even-odd page behavior

Posted by "J.Pietschmann" <j3...@yahoo.de>.
David P. Nesbitt wrote:
> I am having a problem with my header only appearing on
> odd pages, but I have not set up my page masters to
> have even-odd characteristics.

The most likely reason is that your header content is slightly
too large to fit the allocated region. FOP continues to put
the content which didn't fit on the next page's header. There
are probably also both round-off error and automatically added
space involved, so even if you think the content will fit
tightly, FOP may think otherwise.
The simplest solution is to increase the region extent until
the effect goes away.
BTW you should have gotten a message about static content
overflowing the region.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org