Page 1 of 1

Step number not aligning with step when using inline graphics

Posted: Thu May 12, 2016 7:50 pm
by Dita_user32
I'm having a problem with inline images pushing the content from the step away from the step number.

Here's what it should look like:

1. Press this button <ph><image/></ph>.

Here's what it does look like (except it preserves the indent):

1.
Press this button <ph><image/></ph>.

The step only becomes misaligned from it's step number when publishing to PDF, it looks fine in the editor. And it seems to move the text down from the step number proportionally to the height of the image.

Any ideas?

Re: Step number not aligning with step when using inline graphics

Posted: Fri May 13, 2016 3:26 pm
by radu_pisoi
Hi,

Unfortunately, this is a known issue that cannot be fixed due to limitations in Apache FOP processor.
https://github.com/dita-ot/dita-ot/issues/1241

This happens when the image height is greater than the text line height. So, an workaround could be to resize your image.

I have tested with a commercial FOP processor, Antenna House, and the PDF looks much better. In this case the list item number is placed on the base line.

Re: Step number not aligning with step when using inline graphics

Posted: Fri May 13, 2016 4:46 pm
by Dita_user32
Thanks for your response. So are you saying that this behavior shouldn't be happening if you are using Antenna House or that it doesn't happen to the same degree with Antenna House? We were using Apache before and had the problem and we switched to Antenna house and are still having the same problem.

Re: Step number not aligning with step when using inline graphics

Posted: Mon May 16, 2016 12:15 pm
by radu_pisoi
I've tested with oXygen 18.0 and DITA-OT 2.2.3 that comes bundled with application.

Code: Select all

<step>
<cmd><ph>If you are<image href="../images/logo1.gif" id="image_wls_ww3_zv"/>on a Windows
system, click the X in the corner of each program.</ph></cmd>
</step>
With Apache FOP I've got:
Image

and with Antenna House:
Image