Re: [xsl] watermarking PDF

Subject: Re: [xsl] watermarking PDF
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Nov 2011 13:06:20 -0500
Note that while Antenna House doesn't report an error, my read of the specification is that my example for you should have tripped an error:

  4.9.6 Layering and Conflict of Marks
  If A and B have the same stacking layer and neither is an
  ancestor of the other, then it is an error if either their
  backgrounds conflict or if a non-background mark of A
  conflicts with a non-background mark of B.

Not being an implementer, I'm assuming that since the Z-layer of the regions is undefined they are considered at the same layer, thus the non-backgrounds in my example would conflict. However, if they are undefined, then perhaps they are not considered at the same level, and the text above doesn't apply.

Note that the 4.9 introduction defines "marks" to include both glyphs and images.

BTW, I made Z-level of the region less relevant in my example below by playing with the opacity of the watermark

I hope this helps.

. . . . . . . . . . . Ken

At 2011-11-30 12:51 -0500, I wrote:
At 2011-11-30 17:51 +0100, Geert Bormans wrote:
I was thinking about SVG after I saw the watermarking example of Antenna House
I am curious to how I could manage the SVG inline in the stylesheet, can you give a example please?

It cannot be done inline unless you use the overlapping regions. The region background is an attribute, not a formatting object.

The example below happens to look good in Antenna House.

I hope this helps.

. . . . . . . . . . Ken

p.s. I created the SVG using the free Inkscape tool, saving as SVG, and hacking the resulting XML to be the minimum subset I need without the baggage Inkscape uses for going full circle saving and reopening the file

Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0
Crane Softwrights Ltd.  
G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Google+ profile:
Legal business disclaimers:

Current Thread