Re: [afp-renderer-users] Difference in AFP and PDF from the same XSL:FO file
Brought to you by:
towny,
tumbarumba
From: Joe S. <jo...@ex...> - 2005-05-11 20:41:46
|
On Wed, 2005-05-11 at 21:15, Joe Schmetzer wrote: > On Wed, 2005-05-11 at 16:07, Magowan, David (ANFIS) wrote: > > We have produced PDF and AFP from the same XSL:FO file and the output > > is different. The AFP version has horizontal and vertical lines > > appearing that the PDF does not. > > > > This issue was raised a few weeks ago by my colleague Steve Beattie > > when it was initially thought that the problem was to do with BORDERS. > > We have since discovered that the border processing is working > > correctly (i.e. boxes appearing around the answers on RHS of the > > page). > > > > I have attached the PDF, AFP and the XSL:FO > > > > Has anyone come across this problem before ? If so, did you resolve it > > and how ? > > > > Any help would be much appreciated. > > Hi David, > > I had a look at your example, and was able to reproduce your problem. > The issue lies with handling of border-width="0px" inside your example > fo. The AFP Renderer incorrectly treats this as a non-zero width, and so > displays a border. I had tried to do a fix for Steve, but it looks like > I missed a scenario. > > If you delete the border-width="0px" attributes from your example, the > results look more like what you would expect. If you have full control > over your fo generation, you can simply remove these. > > In the meantime, I'll try and fix up the source to get the correct > behaviour. Actually, scratch that. My last patch *did* fix the problem. It looks like you're using version 1.1.0. You should be using version 1.1.1-dev (which will become version 1.1.1 when I get around to doing a release). You can confirm the version you are using by running the command `XML2AFP.sh -v` (unix) or `XML2AFP.bat -v` (windows) It should print out something like: XML2AFP 1.1.1-dev Cheers, Joe |