This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: FOP and SVG?
- From: Bob Stayton <bobs at caldera dot com>
- To: Jeff Beal <jeff dot beal at ansys dot com>, 'Stefan Bylund' <steby at enea dot se>,docbook-apps at lists dot oasis-open dot org
- Date: Mon, 18 Nov 2002 11:13:22 -0800
- Subject: Re: DOCBOOK-APPS: FOP and SVG?
- References: <E08C8F26F6901D42B1201763D125853815B33B@ntdevexc.win.ansys.com>
You should also take a look at the information about
SVG support in FOP at the apache website:
http://xml.apache.org/fop/svg.html
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
On Mon, Nov 18, 2002 at 01:55:23PM -0500, Jeff Beal wrote:
> I haven't done any work with SVG, but I do know that FOP has problems with
> the src="url(filename)" syntax. Go into the resulting FO file and change
> src="url(image.svg)" to src="image.svg". You should also be sure that
> image.svg exists in the same directory as the FO file. If that doesn't
> work, try to capture FOP's error message concerning this line and send that.
>
> Jeff Beal
>
> -----Original Message-----
> From: Stefan Bylund [mailto:steby@enea.se]
> Sent: Monday, November 18, 2002 12:33 PM
> To: docbook-apps@lists.oasis-open.org
> Cc: steby@enea.se
> Subject: DOCBOOK-APPS: FOP and SVG?
>
>
> Hi,
>
> I'm a new DocBook user. I'm in the process of evaluating DocBook XML and
> Saxon/FOP for possible use at my company. So far I'm very happy with both
> DocBook and Saxon/FOP. However, I can't get FOP to handle SVG images however
> hard I try. This really bothers me since I really want us to be able to use
> SVG
> for PDF output. I'm using the following versions of software on a Solaris 8
> machine with JDK 1.3.1:
>
> * DocBook XML 4.2
> * DocBook XSL Stylesheets 1.57.0
> * Saxon 6.5.2
> * FOP 0.20.4
>
> I have attached a simple DocBook document (book.xml) who references a simple
> SVG
> image (image.svg). Saxon successfully creates a .fo file, whose SVG image
> reference looks ok in my eyes (see code snippet below). FOP then creates a
> .pdf
> file from this .fo file but the SVG image doesn't show up.
>
> I used the following command lines:
>
> > java com.icl.saxon.StyleSheet -x
> org.apache.xml.resolver.tools.ResolvingXMLReader -y
> org.apache.xml.resolver.tools.ResolvingXMLReader -r
> org.apache.xml.resolver.tools.CatalogResolver -u -o book.fo book.xml
> ~steby/xml/docbook-xsl/fo/docbook.xsl
>
> > java org.apache.fop.apps.Fop -fo book.fo -pdf book.pdf
>
> SVG image reference in generated .fo file:
> <fo:external-graphic src="url(image.svg)" width="auto" height="auto"
> content-width="auto" content-height="auto"/>
>
> I would be extremely grateful if anybody could shed some light on this
> matter.
> As it is now, I can't get any further with the evaluation; SVG support is a
> show
> stopper.
>
> Regards,
> Stefan Bylund
>
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com