Hi Ajit, ajit kulkarni wrote: > Hey Andreas, > > > Thanks a ton for your concern, I really am thankful to u. > > 1. 'Smooth Line Art' Option is enabled in my acrobat reader. > > 2. Separate model is really not suitable for me as it will need lot of > redesigning. (I am using XSLT for to generate fo data). > > To make is clearer, I have attached 3 files. > > .pdf and corresponding .fo file to illustrate the problem and a jpg file > showing the exact concern. > > Please go through them and kindly suggest if I can modify anything to get > the width of the border as uniform as what it used to be in 0.20.5.
There is not much you can do IMO. Like Andreas said FOP 0.95 implements the border-collapsing model, whereas FOP 0.20.5 didn’t IIC. That means that FOP 0.20.5 switches back to the separate border model, in which case each cell has its own border of 0.2mm, effectively leading to borders of 0.4mm. FOP 0.95, OTOH, follows the collapsing model and merges the borders of neighbouring cells into just one border of 0.2mm. So on the PDF file produced by 0.20.5 you see thicker borders that are likely to render more evenly on a computer screen. Whereas the 0.2mm borders produced by 0.95 are too thin to be rendered nicely (there’s not much anti-aliasing can do if a one pixel wide line must be rendered between two rows of pixels on the screen, for example). While on the screen lines may look uneven they should all look the same when the file is printed. If you also want lines to look good on the screen the only thing you can do is increase the border widths (but the ‘right’ width is highly dependent on the targeted hardware). There actually is one problem in your FO file though: there is a missing cell at the bottom right of the table. The last line only contains four cells instead of five. FOP 0.95 doesn’t properly handle that case, and half of the border is actually missing there. To solve that you just have to add an empty cell to the last row (an fo:table-cell with an empty <fo:block/> child). HTH, Vincent > --- Thanks and Regards, > Ajit Kulkarni. > > On Thu, Apr 2, 2009 at 11:49 PM, Andreas Delmelle < > [email protected]> wrote: > >> On 02 Apr 2009, at 11:24, ajit kulkarni wrote: >> >> I am in the process of upgrading my FOP from 0.20.5 to 0.95. >>> While doing so I am coming across a wired problem. I am using "solid" >>> border of "0.2mm" thickness on table cells. But it is not getting rendered >>> as fine as what it used to in 0.20.5. >>> >>> I am attaching 2 pdf files rendered by FOP 0.20.5 and 0.95. >>> >>> Kindly look both pdf files @ 50% zoom for clear understanding of the >>> problem, the borders looks like if they are having different thickness. >>> >> I see differences too, but the file produced by 0.95 (according to the file >> name) actually shows much finer borders at a zoom of 50%. I do know that >> borders are drawn differently in 0.95. Does the difference persist if you >> send the document to the printer? If not, then check if the viewer has >> 'Smooth Line Art' enabled (for Adobe Reader, this option is found in the >> preferences). >> >> >>> Please let me know the cause of the same. >>> >> Another possible cause (long shot) could be that FOP 0.95 supports >> border-collapse="collapse". Try forcing the table to use >> border-collapse="separate" and see if that produces a different effect. >> >> >> HTH! >> >> Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
