[xep-support] how can I create a watermark in my output?

Dan Ochs dan.ochs at gmail.com
Tue Nov 11 09:13:47 PST 2008


ahhhh fo:region-body!  yup that did the trick, thanks!

The code that I ended up using is:
<fo:region-body background-image="url(draft.svg)"
background-position-horizontal="center"
background-position-vertical="center"/>

and if anyone is curious, the Inkscape generated svg for the word
DRAFT I'm using to test is:
<svg xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg" version="1.0" width="744.09448"
height="1052.3622" id="svg2">
	<defs id="defs4"/>
	<g id="layer1">
		<flowRoot id="flowRoot2383" xml:space="preserve"
style="font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Helvetica">
			<flowRegion id="flowRegion2385">
				<rect width="1217.1428" height="274.28571" x="-105.71429"
y="280.93362" id="rect2387"/>
			</flowRegion>
			<flowPara id="flowPara2389">D</flowPara>
		</flowRoot>
		<text x="-521.6015" y="702.87518"
transform="matrix(0.7071068,-0.7071068,0.7071068,0.7071068,0,0)"
id="text2391" xml:space="preserve"
style="font-size:256.25039673px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Helvetica">
			<tspan x="-521.6015" y="702.87518" id="tspan2393"
style="font-size:256.25039673px;fill:#cccccc;fill-opacity:1">DRAFT</tspan>
		</text>
	</g>
</svg>


dan


On Tue, Nov 11, 2008 at 10:52 AM, G. Ken Holman
<gkholman at cranesoftwrights.com> wrote:
> Have you tried setting the background image on the body region?
>
>  <fo:region-body .... background-image="".../>
>
> . . . . . . . . Ken
>
> At 2008-11-11 10:21 -0500, Dan Ochs wrote:
>>
>> <fo:flow flow-name="xsl-region-body" background-image="url(draft.svg)"
>> background-attachment="fixed" background-repeat="no-repeat"
>> background-position-horizontal="center"
>> background-position-vertical="center"
>> rx:background-content-height="100%"
>> rx:background-content-width="100%">
>>
>> If I add the same attributes to the first fo:block under fo:flow, and
>> that fo:block wraps all of the content in fo:flow, I see the
>> background image on multiple pages.
>>
>> The question is how can I get the image to appear over the entire page
>> like a watermark, regardless of how much content is on it?
>>
>> On Tue, Nov 11, 2008 at 9:39 AM, G. Ken Holman
>> <gkholman at cranesoftwrights.com> wrote:
>> > Have you tried setting the background image on the body region?
>
>
> --
> Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
> Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
> Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
> Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
> G. Ken Holman                 mailto:gkholman at CraneSoftwrights.com
> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
> Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/f/bc
> Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
>
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo at renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
> http://www.renderx.com/terms-of-service.html
>
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list