Hiren sent me an AFP sample off-list. I know now what's causing the
effect: A Map Image Object uses "scale to fill" instead "replicate and
trim". The 8x8 dither pattern gets streched to the background area and
is not replicated. How that got in there, I have no idea.

org.apache.fop.afp.AFPDitheredRectanglePainter.paint(PaintingInfo)
clearly uses "replicate and trim" since the beginning. I can only
explain it with someone changing the source code. Hiren, did you modify
your FOP version?
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java?view=log

On 04.02.2011 13:48:32 Jeremias Maerki wrote:
> Hmm, I can't reproduce your problem. Mine was actually something else
> and has to do with encoding monochrome images that have been generated
> by JAI. Have you tried a different viewer or actually printed the file?
> In my experience, there are huge differences between AFP viewers. I've
> checked with Compart DocBridgeView, IBM Workbench, BTB Browser and ISIS
> Papyrus AFP Viewer.
> 
> Which FOP version are you using? You can send me a sample AFP file
> off-list and I'll check if I see anything wrong.
> 
> On 04.02.2011 11:25:21 hirenshah wrote:
> > 
> > Thanks!  Any help would be greatly appreciated :)
> > 
> > 
> > 
> > Jeremias Maerki-2 wrote:
> > > 
> > > I'll take a look. I've noticed something similar when when I was testing
> > > something on Wednesday.
> > > 
> > > On 04.02.2011 09:06:50 hirenshah wrote:
> > >> 
> > >> We have an issue with table shading with AFP at the moment where the
> > >> output
> > >> looks like this when shading is set to dithered:
> > >> http://old.nabble.com/file/p30842457/Shading.png 
> > >> 
> > >> When we set shading to color it looks like this, but when printed the
> > >> shading is completely black making the text unreadable:
> > >> http://old.nabble.com/file/p30842457/Shading%2B2.png 
> > >> 
> > >> Can anyone suggest what we should look at?  We know it is not the printer
> > >> as
> > >> the AFP files actually look like this (screenshots taken using AFP
> > >> Viewer).
> > >> 
> > >> -- 
> > >> View this message in context:
> > >> http://old.nabble.com/Shading-Issue-tp30842457p30842457.html
> > >> Sent from the FOP - Users mailing list archive at Nabble.com.
> > > 
> > > 
> > > 
> > > Jeremias Maerki
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> > > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> > > 
> > > 
> > > 
> > 
> > -- 
> > View this message in context: 
> > http://old.nabble.com/Shading-Issue-tp30842457p30843028.html
> > Sent from the FOP - Users mailing list archive at Nabble.com.




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to