You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Keiron Liddle <ke...@aftexsw.com> on 2000/05/30 14:08:32 UTC

Fop bugs

There appear to be two bugs that I have found

The PDFColor 'attempts' to override a method called
 public String getColorSpaceOut(boolean fillNotStroke)
but unforutnately it is spelt
 public String getColorspaceOut(boolean fillNotStroke)

and the line
   while (! consumer.isImageReady()) {}
in some situations causes the image to never load (well I didn't wait)
but changing to
   while (! consumer.isImageReady()) {Thread.sleep(500);}
will allow it to load.



Re: Fop bugs

Posted by Eric SCHAEFFER <es...@posterconseil.com>.
----- Original Message -----
From: Keiron Liddle <ke...@aftexsw.com>
To: <fo...@xml.apache.org>
Sent: Tuesday, May 30, 2000 2:08 PM
Subject: Fop bugs


> There appear to be two bugs that I have found
>
> The PDFColor 'attempts' to override a method called
>  public String getColorSpaceOut(boolean fillNotStroke)
> but unforutnately it is spelt
>  public String getColorspaceOut(boolean fillNotStroke)
>

?:
PDFColor.java l.217
 public String getColorSpaceOut(boolean fillNotStroke)
PDFPathPaint.java l.70
 public String getColorSpaceOut(boolean fillNotStroke)


> and the line
>    while (! consumer.isImageReady()) {}
> in some situations causes the image to never load (well I didn't wait)
> but changing to
>    while (! consumer.isImageReady()) {Thread.sleep(500);}
> will allow it to load.
>

Can you tell me in what "situation" the image isn't loaded ?
I can add this line in the FopImageConsumer class (method getImage, use a
PixelGrabber : just change the call to grabPixels() to grabPixels(timeout)),
but how do you choose the timeout value ?
If an error occurs, the ImageProducer should set the status to IMAGEERROR and
the PixelGrabber should raise an exception, no ?

>

Eric.