Stuart, very interesting - one of the core changes between 0.20.5 and 0.95 is the line breaking algorithm which is now based on a model that can described as "best fit" while 0.20.5 uses "first fit". With "best fit" you get a result that is suppose to be more aesthetically pleasing by avoiding lines with uneven length, avoiding large gaps when justifying etc.. You can see that effect by looking at the center aligned paragraphs in your box labelled "Cover". In 0.95 the lines in each center aligned paragraph are much more equal in length giving each paragraph a much more balanced appearance. However, the sequence of the 3 center aligned paragraphs is now looking very different compared to 0.20.5 (and not necessarily 'better') as in 0.20.5 the 3 paragraphs together are much more similar (first line of each paragraph as roughly the same length) to each other which is probably desirable in this particular case.
I have no solution how to exactly replicate 0.20.5 layout behaviour in 0.95. Of course you could use hard line breaks to produce the same output. Regarding the vertical space this is most likely caused by 0.95 implementing the XSL-FO specification much more accurately in this respect. The setting of line-height comes to mind as a parameter to play with. You may have to go through your fo file paragraph by paragraph (fo:block by fo:block) and make adjustments until you get the line spacing as you want it. Stuart Turner wrote: > > Hi > > I've upgraded our application to use 0.95 and I have the problem that > documents that were formatted to fit on one page are now overflowing onto > a second page. It seems that the spacing between lines of text, (and also > between other elements), has increased in this version of FOP. I've > searched for some kind of parameter that might let me control this but not > found any. Is this just a consequence of the rewrite for 0.95 and is there > anything I can do about it ? (I notice there are some known issues > regarding white space.) > > Also, centre justification seems to work differently in that words are > split differently across lines. In the example documents 0.20.5 fits more > words into the first line whereas 0.95 spreads words evenly across all > lines. > > I've attached a sample document that displays both behaviours: > > quote.fo - the source generated by RTF2FO from a Word RTF document > keyfacts.png - included image > quote0.20.5.pdf - generated by 0.20.5 > quote0.95.pdf - generated by 0.95 > > Any help would be appreciated as our users are insisting the spacing issue > is solved without changing the original documents. At the moment the only > solution I have is to revert to 0.20.5. :( > > Thanks, > Stuart > > http://www.nabble.com/file/p23944243/quote.fo quote.fo > http://www.nabble.com/file/p23944243/keyfacts.png keyfacts.png > http://www.nabble.com/file/p23944243/quote0.20.5.pdf quote0.20.5.pdf > http://www.nabble.com/file/p23944243/quote0.95.pdf quote0.95.pdf > -- View this message in context: http://www.nabble.com/Upgrade-0.20.5-to-0.95%3A-line-spacing-increased--tp23944243p23946312.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
