xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built"
Date Thu, 03 Feb 2005 16:37:38 GMT
Hi Richard,

    What is 'imageURLProtocol'  I'm guessing it's "file://"
I think it should be either "file:///" or "file:/".

Richard Mixon (qwest) wrote:

> Thomas DeWeese wrote:
> 
>>Richard Mixon (qwest) wrote:
>>
>>
>>>I checked my SVG markup and am not sure how I would change this as
>>>I'm using an xlink:href. Here is an example:
>>>
>>>       xlink:href="images/allTimeBest/<c:out
>>>value="${cmSummary.allTimeBestIcon}"/>"
>>
>>    This means that it is using the base URL for the document
>>to resolve the image reference.  The base URL for the
>>document would be provided when you parse the document.
> 
> 
> I have set the base directory as follows:
> 
>   String httpBaseDir = ".";
>   imageURLProtocol = getInitParameter("imageURLProtocol");
>   String baseDir = this.getServletContext().getRealPath(httpBaseDir);
>   userAgent = new FOUserAgent();
>   userAgent.setBaseURL(imageURLProtocol+baseDir);
>   log.info("init - setting httpBaseDir='"+httpBaseDir+"',
> baseDir='"+baseDir+"'");
> 
> Here is the output from the last "log" statement:
> 
>   09:20:23,646  INFO [main] SVG2PDFServlet:112 - init - setting
> httpBaseDir='.', baseDir='c:\jakarta-tomcat-5.5.7\webapps\stars\.'
> 
> I think I am setting this base directory correctly. Maybe not?

> 09:20:56,146 ERROR [TP-Processor2] PDFXMLHandler:253 - svg graphic could
> not be built: file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message