<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">My goal is to give a fo:block a colored gradient background.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">instead of using the @background-image=.. attribute I want to use a fo:instream-foreign-object to specify a fo:block’s background<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried this, but the fo:instream-foreign-object is not inside the fo:block.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><fo:block border="3pt solid blue" margin="3mm" background-color="yellow"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US"><fo:instream-foreign-object block-progression-dimension="0%" content-width="100%" content-height="scale-to-fit" scaling="non-uniform"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                              <svg xmlns="http://www.w3.org/2000/svg" version="1.0" height="1in" width="8.5in"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                                             <defs><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                                                            <linearGradient id="grad1" x1="100%" y1="0%" x2="0%" y2="0%"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                                                                          <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                                                                          <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                                                           </linearGradient><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                                            </defs><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                                            <rect width="8.5in" height="1in" fill="url(#grad1)" /><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                              </svg><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">               </fo:instream-foreign-object>                                                                                
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                SOME TEXT INSIDE THE PARAGRAPH SOME TEXT INSIDE THE PARAGRAPH SOME TEXT INSIDE THE PARAGRAPH SOME TEXT INSIDE THE PARAGRAPH SOME TEXT INSIDE THE PARAGRAPH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"></fo:block><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Using <fo:block @background-image=”a_svg_file.svg”> technique, I have to specify a real image file, but I cant do this, because I don’t know the colors of this svg-file in advance. The colors are coming from my xml-file.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Using <fo:block @background-image=”url(‘http:///a_url)”> technique, I have to presuppose, that there is a internet connection, which doesn’t reliably exist<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Using <fo:block @background-color=”a_color”> technique, I can produce solid background color only. No gradients.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Using a multistep-technique i.e. First produce a SVG according to my xml and secondly produce the pdf using this SVG is not accepted. I want only one step
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Do you have any ideas how to use a colored gradient as a fo:block’s background?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Kind regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Friedrich Kirch<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">IT2media GmbH & Co KG<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE">Nürnberg, Germany<o:p></o:p></span></p>
</div>
</body>
</html>