xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Douglas" <edoug...@blockhouse.com>
Subject RE: SVG as background to page in 0.95
Date Thu, 25 Mar 2010 13:54:48 GMT
Are you running this all on one machine?

I have my files all on the server.  I read my xsl file into memory, convert it to bytes, and
pass it to the client where I do the transform.  I gave up on trying to figure out the path
reference to the SVG file, if it can still be a path local to the server, if it needs to be
a server path from the client using a mapped drive, or if it can reference an absolute path
to the server using it's machine name.  The SVG is just a text file.  I just copied the whole
file into my XSL.  It's not pretty but it's the easy answer.
 

-----Original Message-----
From: Mario Madunic [mailto:Mario_Madunic@newflyer.com] 
Sent: Thursday, March 25, 2010 9:30 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: SVG as background to page in 0.95

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]
Sent: Thursday, March 25, 2010 3:24 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: SVG as background to page in 0.95

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


---------------------------------------------------------------------
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