Step number not aligning with step when using inline graphics

Questions about XML that are not covered by the other forums should go here.
Dita_user32
Posts: 2

Step number not aligning with step when using inline graphics

Thu May 12, 2016 7:50 pm

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?
radu_pisoi
Posts: 327
Location: Craiova

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

Fri May 13, 2016 3:26 pm

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Dita_user32
Posts: 2

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

Fri May 13, 2016 4:46 pm

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.
radu_pisoi
Posts: 327
Location: Craiova

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

Mon May 16, 2016 12:15 pm

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
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests