Re: Shading Issue
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
Re: Shading Issue
It is done via the API. It is all automatic using a document management system :) mehdi houshmand wrote: > > How are you invoking FOP? Programmatically (via the API) or via the > command line? Once you know that, finding the file would be simple. > > Thanks > > Mehdi -- View this message in context: http://old.nabble.com/Shading-Issue-tp30842457p30844909.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
How are you invoking FOP? Programmatically (via the API) or via the command line? Once you know that, finding the file would be simple. Thanks Mehdi On 4 February 2011 14:33, hirenshah wrote: > > Erm... sorry I don't know where to find that. I have just started looking at > this issue and don't have a clue where all the files are. > > Jeremias Maerki-2 - I can't see it because I am using Nabble to see this > mailing list. > -- > View this message in context: > http://old.nabble.com/Shading-Issue-tp30842457p30844861.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Shading Issue
Erm... sorry I don't know where to find that. I have just started looking at this issue and don't have a clue where all the files are. Jeremias Maerki-2 - I can't see it because I am using Nabble to see this mailing list. -- View this message in context: http://old.nabble.com/Shading-Issue-tp30842457p30844861.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
Hi Hiren, If you take a look at the fop website, it may answer a few of your questions, here's a link to the quick start guide: http://xmlgraphics.apache.org/fop/quickstartguide.html Mehdi On 4 February 2011 14:29, Eric Douglas wrote: > No > Your input file. > That would be the file ending in .fo, or the .xml and .xsl. > > > -Original Message- > From: hirenshah [mailto:hiren.s...@rbs.co.uk] > Sent: Friday, February 04, 2011 9:22 AM > To: fop-users@xmlgraphics.apache.org > Subject: RE: Shading Issue > > > The fop.xconf? > > > Eric Douglas wrote: >> >> The xslfo file. It's the intermediate file. I was a bit confused >> when I first started working with FOP as I don't use the fo file. >> If you don't have an fo file you could generate one or provide the xsl > >> and xml files. >> The fo file must exist to process FOP but it doesn't need to normally >> be a physical file. If you start with xml the fo may only be >> generated in memory. >> > > -- > View this message in context: > http://old.nabble.com/Shading-Issue-tp30842457p30844790.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Shading Issue
No Your input file. That would be the file ending in .fo, or the .xml and .xsl. -Original Message- From: hirenshah [mailto:hiren.s...@rbs.co.uk] Sent: Friday, February 04, 2011 9:22 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Shading Issue The fop.xconf? Eric Douglas wrote: > > The xslfo file. It's the intermediate file. I was a bit confused > when I first started working with FOP as I don't use the fo file. > If you don't have an fo file you could generate one or provide the xsl > and xml files. > The fo file must exist to process FOP but it doesn't need to normally > be a physical file. If you start with xml the fo may only be > generated in memory. > -- View this message in context: http://old.nabble.com/Shading-Issue-tp30842457p30844790.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
The one you see in my "From" header: d...@jeremias-maerki.ch On 04.02.2011 13:52:12 hirenshah wrote: > > The print out looks the same as what I see in the AFP file. > > What is your email address? I will send you the AFP :) > > > > Jeremias Maerki-2 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. > > > > -- > View this message in context: > http://old.nabble.com/Shading-Issue-tp30842457p30844190.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
RE: Shading Issue
The fop.xconf? Eric Douglas wrote: > > The xslfo file. It's the intermediate file. I was a bit confused when > I first started working with FOP as I don't use the fo file. > If you don't have an fo file you could generate one or provide the xsl > and xml files. > The fo file must exist to process FOP but it doesn't need to normally be > a physical file. If you start with xml the fo may only be generated in > memory. > -- View this message in context: http://old.nabble.com/Shading-Issue-tp30842457p30844790.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Shading Issue
The xslfo file. It's the intermediate file. I was a bit confused when I first started working with FOP as I don't use the fo file. If you don't have an fo file you could generate one or provide the xsl and xml files. The fo file must exist to process FOP but it doesn't need to normally be a physical file. If you start with xml the fo may only be generated in memory. -Original Message- From: hirenshah [mailto:hiren.s...@rbs.co.uk] Sent: Friday, February 04, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Shading Issue What do you exactly mean by the FO? mehdi houshmand wrote: > > Hi Hirenshah, > > If you could post the FO, cut out anything that's not pertinent, I'll > take a look as well. > > Mehdi -- View this message in context: http://old.nabble.com/Shading-Issue-tp30842457p30844681.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
The FO is the standard input format used by FOP (FO Processor), if you use XML and XSLT, could you convert the XML into FO with the XSLT and post the resultant FO file. Hopefully that makes sense. Mehdi On 4 February 2011 14:11, hirenshah wrote: > > What do you exactly mean by the FO? > > > mehdi houshmand wrote: >> >> Hi Hirenshah, >> >> If you could post the FO, cut out anything that's not pertinent, I'll >> take a look as well. >> >> Mehdi > > -- > View this message in context: > http://old.nabble.com/Shading-Issue-tp30842457p30844681.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
What do you exactly mean by the FO? mehdi houshmand wrote: > > Hi Hirenshah, > > If you could post the FO, cut out anything that's not pertinent, I'll > take a look as well. > > Mehdi -- View this message in context: http://old.nabble.com/Shading-Issue-tp30842457p30844681.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
Hi Hirenshah, If you could post the FO, cut out anything that's not pertinent, I'll take a look as well. Mehdi On 4 February 2011 12:52, hirenshah wrote: > > The print out looks the same as what I see in the AFP file. > > What is your email address? I will send you the AFP :) > > > > Jeremias Maerki-2 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. >> > > -- > View this message in context: > http://old.nabble.com/Shading-Issue-tp30842457p30844190.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > > - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
The print out looks the same as what I see in the AFP file. What is your email address? I will send you the AFP :) Jeremias Maerki-2 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. > -- View this message in context: http://old.nabble.com/Shading-Issue-tp30842457p30844190.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
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. > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
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. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Shading Issue
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
Shading Issue
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. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org