Hello If I add "mm" to the page-height attribute it does seem to work ok when I try it.
Do note that a few other attributes on other elements are resulting in "SEVERE" messages from fop Nov 30, 2010 8:52:16 AM org.apache.fop.fo.PropertyList convertAttributeToProperty SEVERE: Ignoring property: start-indent=" " (file:/Users/pc/Downloads/fop-0.95/pagesize.fo:57:7: No conversion defined ; property:'start-indent') Nov 30, 2010 8:52:16 AM org.apache.fop.fo.PropertyList convertAttributeToProperty SEVERE: Ignoring property: start-indent=" " (file:/Users/pc/Downloads/fop-0.95/pagesize.fo:57:7: No conversion defined ; property:'start-indent') Nov 30, 2010 8:52:16 AM org.apache.fop.layoutmgr.table.TableLayoutManager getNextKnuthElements INFO: table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%" Hope this helps Peter On 30 Nov 2010, at 02:55, gcit wrote: > > Hi, > I am trying to set the page( height) X ( width) to 51.42mm x 76.38mm. So far > I fail to get a document that is even close to this size. I have tried using > px and inches. Any suggestions? > > thanks > > PS > I coppied my document below. > > > > <?xml version="1.0" encoding="utf-8"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <xsl:output method="xml" encoding="UTF-8" indent="yes"/> > <xsl:param name="startX"/> > > <xsl:template match="/"> > > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master master-name="content" > page-width="51.42mm" page-height="76.36" > > <fo:region-body background-color="black" /> > > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="content"> > > > <fo:flow flow-name="xsl-region-body" > > > <fo:table table-layout="fixed" width="100%" > > <fo:table-column column-width="proportional-column-width(1)"/> > <fo:table-body> > <fo:table-row height="76.36px"> > <fo:table-cell > display-align="center" > > > > height="20px" > > > > > > <fo:table table-layout="fixed" > > <fo:table-column column-width="proportional-column-width(1)"/> > <fo:table-body> > <fo:table-row height="100px"> > <fo:table-cell > display-align="center" > border-after-style="solid" > background-color="white" > border-end-style="solid" > border-end-color="black" > border-end-width="10px" > border-start-style="solid" > border-start-color="black" > border-start-width="30px" > > > > > > <fo:block > background-color="white" > start-indent="10px" > end-indent="10px" > space-after="10px" > space-before="10px" > text-align="left" > keep-with-next="always" > > > > > > > > <fo:block font-size="18pt" text-align="left" start-indent=" " > font-weight="bold"> > Hello World! > </fo:block> > > <fo:list-block start-indent=" " provisional-distance-between-starts="18pt" > provisional-label-separation="3pt"> > <fo:list-item> > <fo:list-item-label end-indent="label-end()"> > <fo:block>•</fo:block> > </fo:list-item-label> > <fo:list-item-body start-indent="body-start()"> > <fo:block>First item</fo:block> > </fo:list-item-body> > </fo:list-item> > <fo:list-item> > <fo:list-item-label end-indent="label-end()"> > <fo:block>•</fo:block> > </fo:list-item-label> > <fo:list-item-body start-indent="body-start()"> > <fo:block>In a prior life I was a J2EE architect and worked for BEA > and Oracle Professional services. I am familiar with a broad range of > technologies. > > </fo:block> > </fo:list-item-body> > </fo:list-item> > <fo:list-item> > <fo:list-item-label end-indent="label-end()"> > <fo:block>•</fo:block> > </fo:list-item-label> > <fo:list-item-body start-indent="body-start()"> > <fo:block>First item</fo:block> > </fo:list-item-body> > </fo:list-item> > </fo:list-block> > > > > > > > > > > > </fo:block> > > </fo:table-cell> > </fo:table-row> > </fo:table-body> > </fo:table> > > > </fo:table-cell> > </fo:table-row> > </fo:table-body> > </fo:table> > > > > > > > </fo:flow> > </fo:page-sequence> > </fo:root> > </xsl:template> > </xsl:stylesheet> > -- > View this message in context: > http://old.nabble.com/page-height-and-page-width-not-working.-tp30336367p30336367.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
