W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2004

RE: SVG / PDF External Graphic

From: Victor Vishnyakov <vvishnyakov@yandex.ru>
Date: Tue, 7 Dec 2004 12:26:38 +0200
To: <www-xsl-fo@w3.org>
Cc: "'Bill Rosenberg'" <bill@eRosenberg.com>
Message-Id: <S1783571AbULGKU7/20041207102104Z+1021@mail.yandex.ru>

First of all, this is an implementation specific issue, thus to get the
precise answer contact your converter vendor. But, as far as I see, the
problem is that graphics in PDF is usually embedded while in SVG isn't. As
the result your SVG output is saved to the different folder and all relative
links are broken. As the solution I would recommend to embed graphics into
SVG using base64 encoding.

Best Regards,
Victor Vishnyakov

> -----Original Message-----
> From: www-xsl-fo-request@w3.org 
> [mailto:www-xsl-fo-request@w3.org] On Behalf Of Bill Rosenberg
> Sent: Monday, December 06, 2004 6:38 PM
> To: www-xsl-fo@w3.org
> Subject: SVG / PDF External Graphic
> Hello,
> I have an application that has to generate both PDF and SVG. 
> The PDF is used for emailing and the SVG is used for 
> printing. I am having trouble getting exernal graphics to 
> display or pirnt in my SVG, while it works fine for the PDF.
> I am using the same XML and XSL to do the XSL-FO 
> transformation for both PDF and SVG. Any ideas why the PDF 
> graphics work great and no graphics show for my SVG.
> Here is a snippet from my XSL file. All three graphics work 
> for the PDF and not eh SVG.
>     <fo:static-content flow-name="xsl-region-before">
>         <fo:block  text-align="center">
>           <fo:external-graphic 
> src="url('/brand/zzz/images/logo.jpg')" />
>           <fo:external-graphic 
> src="url('file:///c:/temp/logo.gif')" />
>           <fo:external-graphic
> src=""/>
>        </fo:block>
>     </fo:static-content>
Received on Tuesday, 7 December 2004 10:21:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:29 UTC