[daisy] SVG to PDF
Bruno Dumon
bruno at outerthought.org
Wed Jul 5 08:09:36 CDT 2006
On Wed, 2006-07-05 at 08:12 -0400, CampbellG at dfo-mpo.gc.ca wrote:
> Ok I checked my cocoon.log file and here is the text of the error:
>
> ERROR (2006-07-04) 14:24.15:302 [sitemap.serializer.fo2pdf.fop]
> (/daisy/cgccms/g1/3.pdf) SocketListener0-2/MessageHandler: Error in
> content-width property value '75%':
> org.apache.fop.fo.expr.PropertyException: No conversion defined
> WARN (2006-07-04) 14:24.18:744 [sitemap.serializer.svg2png]
> (/daisy/cgccms/ext/svg/svg-to-png?documentId=54&branch=main&language=default
> &version=1&part=SvgData) SocketListener0-4/SVGBuilder: Unable to set
> document base URI to null, will default to http://localhost/
> java.net.MalformedURLException: unknown protocol: daisy
I doubt these errors are really cause. For the one about the "75%", you
could try removing that, in the following file:
<daisy
install>/daisywiki/webapp/daisy/resources/skins/default/document-styling/xslfo/SvgDocument.xsl
and there just remove the content-width and width attributes from the
following element:
<fo:external-graphic src="url('{$url}')" width="75%" content-width="75%"/>
After saving the XSL, the change should have immediate effect (i.e., no
need to restart the wiki)
The error about the baseURI can be ignored.
Did you try my suggestion to call the SVG renderer directly? This should
show the error directly in your browser.
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list