> -----Original Message----- > From: Richard King [mailto:[EMAIL PROTECTED] > Sent: Monday, October 23, 2006 3:51 PM > > I sent this to the list but this appears to either be down or > very slow.
I'm in the dark too since 21 oct...:-( > If you can help me here I would much appreciate it. > > I was wondering if it is possible to have a background text > such as "DRAFT" on all pages produced via XSL:FO > > The problem I am having currently is that all text in the > body of the document is overwriting the background text. I > need to have some way of specifying that the text is always on top. > > Cheers, > Richard > > <fo:static-content flow-name="xsl-region-before"> > <fo:block> > <fo:instream-foreign-object> > <svg:svg > xmlns:svg="http://www.w3.org/2000/svg" width="542px" height="505px"> > <svg:title>Vertical text</svg:title> > <svg:g transform="rotate(45, > 10, 20)" font-size="160pt" font-family="sans-serif" > stroke="none" fill="grey"> > <svg:text x="140" > y="80">DRAFT</svg:text> > </svg:g> > </svg:svg> > </fo:instream-foreign-object> > </fo:block> > </fo:static-content> Yes, you can easy do that by inserting your image in a fo:block-container in absolute position, nested in a static region. region-sart is a good choice since by default, its upper left corner is the same as the page. This works with any FOP version. Here is a snippet: <fo:static-content flow-name="xsl-region-start"> <fo:block-container position="absolute" left="0mm" top="0mm" width="210mm" height="297mm"> <fo:block text-align="center" font-size="0mm"> <fo:instream-foreign-object width="210mm" height="297mm"> <svg xmlns="http://www.w3.org/2000/svg" width="210mm" height="297mm" viewBox="0 0 200 200" preserveAspectRatio="none"> <g transform="translate(100,100)"> <g transform="rotate(-45)"> <text x="0" y="6" style="font-size: 10pt; fill: #dddddd; text-anchor: middle;"> DRAFT </text> </g> </g> </svg> </fo:instream-foreign-object> </fo:block> </fo:block-container> </fo:static-content> Pascal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
