[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: watermarking PDF

Subject: Re: watermarking PDF
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Nov 2011 12:51:32 -0500
Re:  watermarking PDF
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

<?xml version="1.0" encoding="US-ASCII"?><!--geert.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
      font-family="Times" font-size="20pt">

  <layout-master-set>
    <simple-page-master master-name="frame"
                        page-height="297mm" page-width="210mm"
                        margin-top="15mm" margin-bottom="15mm"
                        margin-left="15mm" margin-right="15mm">
      <region-body region-name="frame-body"/>
      <region-start region-name="start" extent="210mm"/>
    </simple-page-master>
  </layout-master-set>

<page-sequence master-reference="frame">
<static-content flow-name="start">
<block text-align="center">
<instream-foreign-object>
<svg xmlns="http://www.w3.org/2000/svg"
width="744.09448819"
height="1052.3622047">
<g id="layer1">
<text
xml:space="preserve"
style="font-size:133.00810242000000017px;font-style:normal;font-weight:no
rmal;fill:#000000;fill-opacity:0.17647059;stroke:none;font-family:Bitstream Vera
Sans"
x="-635.17249"
y="746.8996"
id="text2816"
transform="matrix(0.68900485,-0.68900485,0.7256843,0.7256843,0,0)"><tspan


         id="tspan2818"
         x="-635.17249"
         y="746.8996">Confidential</tspan></text>
  </g>
</svg>
        </instream-foreign-object>
      </block>
    </static-content>
    <flow flow-name="frame-body">
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
      <block>This is a test used to fill the page with text.</block>
   </flow>
  </page-sequence>
</root>








-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/t37DVX Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.