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 Luis Ferro <lf...@teladigital.pt> on 2006/08/10 06:29:18 UTC

Page definitions (thrunk-svn 20060808)

I've the following page master:

		<fo:simple-page-master master-name="base05"
						page-height="297mm" 
						page-width="210mm"
						margin-top="18mm" 
						margin-bottom="18mm"
						margin-left="17mm" 
						margin-right="17mm">
			<fo:region-body region-name="body" margin-top="22mm" margin-bottom="20mm"
margin-left="3mm" margin-right="3mm" background-color="#F2F2FF"/>
			<fo:region-before region-name="top" extent="22mm"
background-color="#0000FF"/>
			<fo:region-after region-name="bottom" extent="20mm"
background-color="#0000FF"/>
			<fo:region-start region-name="left" extent="3mm" 
background-color="#FF00FF"/>
			<fo:region-end region-name="right" extent="3mm" 
background-color="#FF00FF"/>
		</fo:simple-page-master>

The region start and end are "cutting" over the top and bottom ones...

However, i think that they should be trimmed by the height of both the top
and bottom ones (at least is what i understand from the standard after
reading in Dave's book "XSL-FO" page40)...

In this layout i intend to use a 3mm bleed margin on both sides for elements
on header and footer... and can't use the start/end to limit the body size,
because they overlap the header/footer sections...

LF

PS- I'm not sure if this is a problem or not... (i can use padding also so
not an unsurmounteable problem here)
-- 
View this message in context: http://www.nabble.com/Page-definitions-%28thrunk-svn-20060808%29-tf2082653.html#a5738132
Sent from the FOP - Users forum at Nabble.com.


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


Re: Page definitions (thrunk-svn 20060808)

Posted by Luis Ferro <lf...@teladigital.pt>.
Ok... just found out that this behavior is controled by a attribute in the
before/after regions called "precedence"... ;)

Now my page definition works like a charm... and i manage to build "bleed"
areas on the headers and footers... (that's why the 3mm margins are for) and
paint all the printing area with a color (hmmm... the PDF is exported to
cmyk and that color maps to the cyan channel which will be converted at the
printing process to a pantone color... or something like that... what it
matters is that i can assign it to 10% of that pantone this way)...

Cheers...
LF

P.S.- the other issues still stand thru... (either need more "enligntment"
like this one... or are "features" as some would say hehehe)

<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

	<!-- layout information -->
	<fo:layout-master-set>

		<fo:simple-page-master master-name="base05"
						page-height="297mm" 
						page-width="210mm"
						margin-top="18mm" 
						margin-bottom="18mm"
						margin-left="17mm" 
						margin-right="17mm">
			<fo:region-body region-name="corpo" margin-top="22mm"
margin-bottom="20mm" margin-left="3mm" margin-right="3mm"
background-color="#F2F2FF"/>
			<fo:region-before precedence="true" region-name="cabecalho" extent="22mm"
background-color="#F2F2FF"/>
			<fo:region-after precedence="true" region-name="rodape" extent="20mm"
background-color="#F2F2FF"/>
			<fo:region-start region-name="esquerda" extent="3mm"
background-color="#F2F2FF"/>
			<fo:region-end region-name="direita" extent="3mm"
background-color="#F2F2FF"/>
		</fo:simple-page-master>
	
	</fo:layout-master-set>
	<!-- end: defines page layout -->
			
	<fo:page-sequence master-reference="base05">
		<fo:static-content flow-name="cabecalho">
		
			<fo:block>
			1
			</fo:block>
		
		</fo:static-content>
		<fo:static-content flow-name="rodape">
		
			<fo:block>
			2
			</fo:block>
		
		</fo:static-content>

		<fo:static-content flow-name="esquerda">
		
			<fo:block>
			3
			</fo:block>
		
		</fo:static-content>
		<fo:static-content flow-name="direita">
		
			<fo:block>
			4
			</fo:block>
		
		</fo:static-content>


	
		<fo:flow flow-name="corpo">
		
			<fo:block>
			5
			</fo:block>
			
		
		
		</fo:flow>
	
	</fo:page-sequence>


</fo:root>


-- 
View this message in context: http://www.nabble.com/Page-definitions-%28thrunk-svn-20060808%29-tf2082653.html#a5739239
Sent from the FOP - Users forum at Nabble.com.


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