xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Madunic" <Mario_Madu...@newflyer.com>
Subject RE: SVG as background to page in 0.95
Date Thu, 25 Mar 2010 14:49:56 GMT
Pascal,

Here is a copy of the various paths tried and the fo produced

<fo:region-body region-name="sectionBody_NI" background-image="url('file:///c:/numericIndexTitlePage.svg')"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url('file:/c:/numericIndexTitlePage.svg')"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url('c:/numericIndexTitlePage.svg')"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>


<fo:region-body region-name="sectionBody_NI" background-image="url('file:\\\c:\numericIndexTitlePage.svg')"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url('file:\c:\numericIndexTitlePage.svg')"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url('c:\numericIndexTitlePage.svg')"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>


<fo:region-body region-name="sectionBody_NI" background-image="url(file:///c:/numericIndexTitlePage.svg)"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url(file:/c:/numericIndexTitlePage.svg)"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url(c:/numericIndexTitlePage.svg)"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>


<fo:region-body region-name="sectionBody_NI" background-image="url(file:\\\c:\numericIndexTitlePage.svg)"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url(file:\c:\numericIndexTitlePage.svg)"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

<fo:region-body region-name="sectionBody_NI" background-image="url(c:\numericIndexTitlePage.svg)"
background-repeat="no-repeat" margin-top="1.0in" margin-bottom="0.6375in" margin-right="0.50in"
margin-left="0.75in"/>

And without the url() in the instances without a single quote.

If this is working fine for others (and I'm certain it is), could it be my machine? Use of
ANT? I'm just trying to think of other variables that might be the culprit. I don't once again
have an attribute (@background-image) in the wrong place?

Thanks, your help it is appreciated.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries


-----Original Message-----
From: Pascal Sancho [mailto:pascal.sancho@takoma.fr] 
Sent: Thursday, March 25, 2010 9:11 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: SVG as background to page in 0.95

Mario,

can you try either:
background-image="c:\path\to\file.svg"
or:
background-image="url(file:///c:/path/to/file.svg)"

both should work.

Pascal

Mario Madunic a écrit :
> Pascal,
>
> I declare the image via a variable like this,
>
> <xsl:variable name="g_NumericIndexPage" select="concat('file:///', $cl_WorkDir, '/graphics/numericIndexPage.svg')"
/>
> Which works out to file:///D:/workDirs/publish/graphics/numericIndexPage.svg. So I've
tested all the following as the value of the variable
>
> file:///D:/workDirs/publish/graphics/numericIndexPage.svg
> file://D:/workDirs/publish/graphics/numericIndexPage.svg
> file:/D:/workDirs/publish/graphics/numericIndexPage.svg
> graphics/numericIndexPage.svg
> ../graphics/numericIndexPage.svg
> ../../graphics/numericIndexPage.svg
> ../../../graphics/numericIndexPage.svg
>
> All the above failed to load the svg using 0.95
>
> file:///D:/workDirs/publish/graphics/numericIndexPage.svg works 0.94
> file://D:/workDirs/publish/graphics/numericIndexPage.svg failed 0.94 as expected
> file:/D:/workDirs/publish/graphics/numericIndexPage.svg works 0.94
> graphics/numericIndexPage.svg works
> ../graphics/numericIndexPage.svg failed 0.94 as expected
> ../../graphics/numericIndexPage.svg failed 0.94 as expected
> ../../../graphics/numericIndexPage.svg failed 0.94 as expected
>
> Marijan (Mario) Madunic
> Publishing Specialist
> New Flyer Industries
>
> -----Original Message-----
> From: Pascal Sancho [mailto:pascal.sancho@takoma.fr] 
>
> Hi Mario,
>
> This should work. I suspect that the relative URL is the cause of your
> trouble. Can you check it with an absolute path?
>
> Pascal
>
> Mario Madunic a écrit :
>   
>> I was doing the following with FOP 0.94 while testing
>>
>> <fo:region-body region-name="sectionBody_NI" background-image="bg.svg" background-repeat="no-repeat"
../>
>> And it would appear as a bg on the page.
>>
>> But in 0.95 that doesn't seem to work. How can I get an SVG as a background to work
in 0.95. One constraint is that the odd and even pages in this case each have a different
bg image.
>>
>> Marijan (Mario) Madunic
>>     


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material transmitted
with this communication) is confidential, may be privileged and is intended only for the use
of the intended recipient. If you are not the intended recipient, any review, retransmission,
circulation, distribution, reproduction, conversion to hard copy, copying or other use of
this communication, information or material is strictly prohibited and may be illegal. If
you received this communication in error or if it is forwarded to you without the express
authorization of New Flyer, please notify us immediately by telephone or by return email and
permanently delete the communication, information and material from any computer, disk drive,
diskette or other storage device or media. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message