Thank yout - it works fine.

I check some SVG-Files, big one, small one, with and without embedded images and I get every times a perfekt result without exceptions. GREAT!

Best Regards

       Stefan Neudorfer


Paulo Soares wrote:
In PdfGraphics2D.getDeviceConfiguration() replace with:

    public GraphicsConfiguration getDeviceConfiguration() {
        return ((Graphics2D)dg2).getDeviceConfiguration();
    }

Tell me if it works. I tried to create a new GraphicsConfiguration but in
jdk 1.4 there are more abstract methods and a new class (VolatileImage) that
doesn't exist in earlier versions. The guys at FOP do it with preprocessing
filters but I wanted to avoid that.

Best Regards,
Paulo Soares

  
-----Original Message-----
From:	Paulo Soares [SMTP:[EMAIL PROTECTED]]
Sent:	Tuesday, November 26, 2002 11:07
To:	'Stefan Neudorfer'; [EMAIL PROTECTED]
Subject:	RE: [iText-questions] Using SVG ? ->
UnsupportedOperationExceptio n

I'll have it return something meaningful in the next release.

Best Regards,
Paulo Soares

    
-----Original Message-----
From:	Stefan Neudorfer [SMTP:[EMAIL PROTECTED]]
Sent:	Monday, November 25, 2002 19:11
To:	[EMAIL PROTECTED]
Subject:	[iText-questions] Using SVG ? ->
UnsupportedOperationException

When I use the graphics2d-Implementation from IText to output a
SVG-Image (with apache-batik) then I get a
      
UnsupportedOperationException.
    
What can I do? Does someone have an implementation that works correct?

Exception
java.lang.UnsupportedOperationException
        at 

      
com.lowagie.text.pdf.PdfGraphics2D.getDeviceConfiguration(pdfgraphics2d.ja
    
va:325)
        at 
org.apache.batik.ext.awt.image.GraphicsUtil.getDestination(Unknown
      
Source)
    
        at 

      
org.apache.batik.ext.awt.image.GraphicsUtil.getDestinationColorModel(Unkno
    
wn 

Source)
        at 

      
org.apache.batik.ext.awt.image.GraphicsUtil.getDestinationColorSpace(Unkno
    
wn 

Source)
        at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown
Source)
        at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown
Source)
        at org.apache.batik.gvt.RasterImageNode.primitivePaint(Unknown
Source)
        at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
      
Source)
    
        at 
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown
      
Source)
    
        at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
      
Source)
    
        at org.apache.batik.gvt.ImageNode.paint(Unknown Source)
        at 
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown
      
Source)
    
        at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
      
Source)
    
        at 
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown
      
Source)
    
        at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
      
Source)
    
        at 
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown
      
Source)
    
        at 
org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(Unknown Source)
        at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
      
Source)
    
        at 
org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown
      
Source)
    
        at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown
      
Source)
    


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
      
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
    


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


  

Reply via email to