[
https://issues.apache.org/jira/browse/FOP-2890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985216#comment-16985216
]
Jan Tošovský commented on FOP-2890:
-----------------------------------
I can reproduce. I tend to say AT file is generated properly, but it is then
rendered incorrectly. The problematic is bpd value of inlineblock element. It
represents the height of change-bar. It should not affect the subsequent text
elements, but in reality all the text content is shifted vertically.
{code:xml}
<inlineblock ipd="0" bpd="15000" bpda="15000" bap="1000 1000 0 0"
border-start="(solid,#000000,1000)"
border-end="(solid,#000000,1000)"
left-offset="-22677" top-offset="-3900"/>
<text offset="0" baseline="8616" ipd="122712" bpd="11100" ipda="122712"
bpda="11100" bap="0 0 0 0" color="#000000">
{code}
Btw, inlineblock element was incorporated together with the change-bar support
to cover change-bar flexibility. It seems there are edge cases which needs
further polishing.
I can imagine to implement condition like 'if preceding node is inlineblock
element, its bpd value is somehow ignored'.
> fo:change-bar problem with AT format
> ------------------------------------
>
> Key: FOP-2890
> URL: https://issues.apache.org/jira/browse/FOP-2890
> Project: FOP
> Issue Type: Bug
> Components: unqualified
> Affects Versions: 2.4
> Environment: Tested on Windows 8/10 and Mac OSX 10.15
> Reporter: Michele baravalle
> Priority: Major
> Fix For: 2.4
>
> Attachments: testChangeBar.fo
>
>
>
>
> Good morning,
> I would like to report the following problem.
> Add fo:change-bar on any fo file and make PDF with fop: it work well. Then
> make AT format with the same fo file and then make PDF from the generated AT
> file: output is wrong (change bar and text are overlapped and moved)
> Regards
> Used commands:
> * PDF (work well): fop testChangeBar.fo -pdf ok.pdf
> * AT + PDF (wrong): fop testChangeBar.fo -at test.at
> and then
> fop -atin test.at -pdf wrong.pdf
--
This message was sent by Atlassian Jira
(v8.3.4#803005)