[daisy] SVG to PDF
CampbellG at dfo-mpo.gc.ca
CampbellG at dfo-mpo.gc.ca
Wed Jul 5 08:29:21 CDT 2006
I just noticed another error in the cocoon.log as follows:
ERROR (2006-07-04) 14:22.35:143 [sitemap.serializer.fo2pdf.fop]
(/daisy/cgccms/g1/3.pdf) SocketListener0-2/ExternalGraphic: Error while
creating area : Error with image URL: Server returned HTTP response code:
500 for URL:
http://ottawa.cs.cgc.gc.ca:8888/daisy/cgccms/ext/svg/svg-to-png?documentId=5
4&branch=main&language=default&version=1&part=SvgData and no base URL is
specified
Glenn Campbell
Acting Manager chef par intérim
Informatics Informatique
Canadian Coast Guard College Collège de la Garde côtière canadienne
Telephone : 902-567-3222 téléphone : 902-567-3222
Fax : 902-567-3232 fax : 902-567-3232
-----Original Message-----
From: daisy-bounces at lists.cocoondev.org
[mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of
CampbellG at dfo-mpo.gc.ca
Sent: July 5, 2006 10:25 AM
To: daisy at lists.cocoondev.org
Subject: RE: [daisy] SVG to PDF
Here is the output I get from a directly rendered svg in my browser:
Error
Error during resolving of 'daisy:3 at main:default:live!SvgData'.
Error constructing daisy source for url daisy:3 at main:default:live!SvgData
Received exception from repository server.
No part with id 12 available.
I know that the author used a document include in this particular doc,
however I don't know why it would cause problems with rendering the svg to
pdf.
Glenn Campbell
Acting Manager chef par intérim
Informatics Informatique
Canadian Coast Guard College Collège de la Garde côtière canadienne
Telephone : 902-567-3222 téléphone : 902-567-3222
Fax : 902-567-3232 fax : 902-567-3232
-----Original Message-----
From: daisy-bounces at lists.cocoondev.org
[mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Bruno Dumon
Sent: July 5, 2006 10:10 AM
To: Daisy: open source CMS - general mailinglist
Subject: RE: [daisy] SVG to PDF
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=d
> efault
> &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
install>/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
_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/site/services/daisy/daisysupport.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy
_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/site/services/daisy/daisysupport.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy
More information about the daisy
mailing list