Hi FOP developers, I am hitting the issue described in FOP issue 2106 [1]. I tried the workaround mentioned in that issue (remove line-height-shift-adjustment from fo:root) and while it helped the test FO attached to that issue, it didn't make any effect on the document I have.
I am also seeing other manifestations of the same issue - where a footnote is placed on the page before it is referenced, even though in other cases there is sufficient space at the bottom of the page to accommodate that footnote. As far as I see, it always happens when the reference to that footnote is placed on the first line of the page. This is probably why the workaround in [1] worked for the bad-footnote.fo attached to that issue, as without line-height-shift-adjustment the reference to that footnote moves from the first line of the page down. Any pointers as to what may be causing that issue and/or workarounds would be appreciated. [1] https://issues.apache.org/jira/browse/FOP-2106 Regards, Alexey.