Re: Problem using svg image on both fop.0.20 and fop.0.92beta

2006-05-08 Thread Arturo Perez
Jeremias Maerki  jeremias-maerki.ch> writes:

> 
> Make sure you have it in the /jre/lib/endorsed directory if
> you've installed a JDK rather than a JRE. In my jre/lib/endorsed
> directory for Sun JDK 1.4.2_10 I have the following JARs:
> - serializer-2.7.0.jar
> - xalan-2.7.0.jar
> - xercesImpl-2.7.1.jar
> - xml-apis-1.3.02.jar

Looks like I ran into path (not classpath) problems with Java.  It's working
fine now that I've straighted that out.

Thanks again,
-arturo



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem using svg image on both fop.0.20 and fop.0.92beta

2006-05-08 Thread Jeremias Maerki
Make sure you have it in the /jre/lib/endorsed directory if
you've installed a JDK rather than a JRE. In my jre/lib/endorsed
directory for Sun JDK 1.4.2_10 I have the following JARs:
- serializer-2.7.0.jar
- xalan-2.7.0.jar
- xercesImpl-2.7.1.jar
- xml-apis-1.3.02.jar

And that works fine.

The timeframe for the next Batik release is unknown. There are still a
few things to do before the next release can happen.

On 08.05.2006 15:50:53 Arturo Perez wrote:
> Jeremias Maerki  jeremias-maerki.ch> writes:
> 
> > 
> > This problem is now documented in our FAQ:
> http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required
> > 
> > 
> 
> I put in the Xalan2.7 into the endorsed library (and serializer.jar, it needs
> that too) but I still get the same problem on 0.92
> 
> It looks like I'll have to wait for a fixed Batik for this to be resolved?  If
> so, is there a timeframe for that?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem using svg image on both fop.0.20 and fop.0.92beta

2006-05-08 Thread Arturo Perez
Jeremias Maerki  jeremias-maerki.ch> writes:

> 
> This problem is now documented in our FAQ:
http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required
> 
> 

I put in the Xalan2.7 into the endorsed library (and serializer.jar, it needs
that too) but I still get the same problem on 0.92

It looks like I'll have to wait for a fixed Batik for this to be resolved?  If
so, is there a timeframe for that?

tia,
-arturo




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem using svg image on both fop.0.20 and fop.0.92beta

2006-05-06 Thread Jeremias Maerki
This problem is now documented in our FAQ: 
http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required

On 05.05.2006 22:03:58 Jeremias Maerki wrote:
> Right, the Batik version shipped with FOP 0.20.5 seems to have issues
> with data URLs. If you search for "RFC 2397" on this list, you'll find a
> generic solution that may even help the older Batik version to process
> the data URLs but I didn't check that. At any rate, you'd be able to use
> data URLs in external-graphic elements.
> 
> The problem with FOP 0.92beta is a known one. I promise to document it
> prominently tomorrow. Please see here:
> http://www.nabble.com/fop-trunk-svg-problems-t1177182.html
> http://www.nabble.com/REGRESSION%3A-embedded-SVG-support-in-0.92beta-compared-to-0.91beta-t1531627.html
> 
> The short version of the above:
> Make sure you've got the latest version of Xalan-J and Xerces-J
> installed in your environment. Earlier Xalan-J versions and the latest
> SAXON version all have a bug that causes this problem.
> 
> On 05.05.2006 17:12:53 Arturo Perez wrote:
> > Hi all,
> > 
> > I'm having problems with graphics in fop.0.20.5 (my production site)
> > and fop.0.92.beta (my soon-to-be site).  The PDF ends up with no image in
> > both versions.  I think the problem with 0.20.5 is that it doesn't
> > support data URLs.  The .fo fragment looks like this:
> > 
> > 
> > http://www.w3.org/2000/svg"; width="390" height="186">
> > Figure 1. XYZ 
> > http://www.w3.org/1999/xlink"; 
> > xlink:href="data:image/gif;base64,R0lGODlhhgG6ALMPAO3t87K..." width="390" 
> > height="186"/>
> > 
> > 
> > 
> > On 0.20 I get no errors but the PDF just has a broken image graphic.
> > On 0.92 I get no image whatsoever and the below error.  It's blank where 
> > the image should be and the gap looks to be the correct size. 
> > 
> > Any help would be greatly appreciated, tia.
> > 
> > SEVERE: svg graphic could not be built: file:/.../fop-0.92beta/play/:-1
> > The attribute "width" of the element  is required
> > org.apache.batik.bridge.BridgeException: file:/.../fop-0.92beta/play/:-1
> > The attribute "width" of the element  is required
> > at 
> > org.apache.batik.bridge.SVGImageElementBridge.getImageBounds(Unknown Source)
> > at 
> > org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode 
> > (Unknown Source)
> > at 
> > org.apache.fop.svg.PDFImageElementBridge.superCreateGraphicsNode(PDFImageElementBridge.java:107)
> > at 
> > org.apache.fop.svg.PDFImageElementBridge.createImageGraphicsNode(PDFI...
> 
> 
> 
> Jeremias Maerki



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem using svg image on both fop.0.20 and fop.0.92beta

2006-05-05 Thread Jeremias Maerki
Right, the Batik version shipped with FOP 0.20.5 seems to have issues
with data URLs. If you search for "RFC 2397" on this list, you'll find a
generic solution that may even help the older Batik version to process
the data URLs but I didn't check that. At any rate, you'd be able to use
data URLs in external-graphic elements.

The problem with FOP 0.92beta is a known one. I promise to document it
prominently tomorrow. Please see here:
http://www.nabble.com/fop-trunk-svg-problems-t1177182.html
http://www.nabble.com/REGRESSION%3A-embedded-SVG-support-in-0.92beta-compared-to-0.91beta-t1531627.html

The short version of the above:
Make sure you've got the latest version of Xalan-J and Xerces-J
installed in your environment. Earlier Xalan-J versions and the latest
SAXON version all have a bug that causes this problem.

On 05.05.2006 17:12:53 Arturo Perez wrote:
> Hi all,
> 
> I'm having problems with graphics in fop.0.20.5 (my production site)
> and fop.0.92.beta (my soon-to-be site).  The PDF ends up with no image in
> both versions.  I think the problem with 0.20.5 is that it doesn't
> support data URLs.  The .fo fragment looks like this:
> 
> 
> http://www.w3.org/2000/svg"; width="390" height="186">
> Figure 1. XYZ 
> http://www.w3.org/1999/xlink"; 
> xlink:href="data:image/gif;base64,R0lGODlhhgG6ALMPAO3t87K..." width="390" 
> height="186"/>
> 
> 
> 
> On 0.20 I get no errors but the PDF just has a broken image graphic.
> On 0.92 I get no image whatsoever and the below error.  It's blank where the 
> image should be and the gap looks to be the correct size. 
> 
> Any help would be greatly appreciated, tia.
> 
> SEVERE: svg graphic could not be built: file:/.../fop-0.92beta/play/:-1
> The attribute "width" of the element  is required
> org.apache.batik.bridge.BridgeException: file:/.../fop-0.92beta/play/:-1
> The attribute "width" of the element  is required
> at 
> org.apache.batik.bridge.SVGImageElementBridge.getImageBounds(Unknown Source)
> at 
> org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode 
> (Unknown Source)
> at 
> org.apache.fop.svg.PDFImageElementBridge.superCreateGraphicsNode(PDFImageElementBridge.java:107)
> at 
> org.apache.fop.svg.PDFImageElementBridge.createImageGraphicsNode(PDFI...



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem using svg image on both fop.0.20 and fop.0.92beta

2006-05-05 Thread Arturo Perez
Title: Problem using svg image on both fop.0.20 and fop.0.92beta






Hi all,


I'm having problems with graphics in fop.0.20.5 (my production site) and fop.0.92.beta (my soon-to-be site).  The PDF ends up with no image in both versions.  I think the problem with 0.20.5 is that it doesn't support data URLs.  The .fo fragment looks like this:



http://www.w3.org/2000/svg" width="390" height="186">

Figure 1. XYZ 

http://www.w3.org/1999/xlink" xlink:href="" width="390" height="186"/>






On 0.20 I get no errors but the PDF just has a broken image graphic.

On 0.92 I get no image whatsoever and the below error.  It's blank where the image should be and the gap looks to be the correct size. 

Any help would be greatly appreciated, tia.


SEVERE: svg graphic could not be built: file:/.../fop-0.92beta/play/:-1

The attribute "width" of the element  is required

org.apache.batik.bridge.BridgeException: file:/.../fop-0.92beta/play/:-1

The attribute "width" of the element  is required

    at org.apache.batik.bridge.SVGImageElementBridge.getImageBounds(Unknown Source)

    at org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode (Unknown Source)

    at org.apache.fop.svg.PDFImageElementBridge.superCreateGraphicsNode(PDFImageElementBridge.java:107)

    at org.apache.fop.svg.PDFImageElementBridge.createImageGraphicsNode(PDFI...