PDF output for inline graphic

Here should go questions about transforming XML with XSLT and FOP.
Posts: 6

PDF output for inline graphic

Fri Oct 14, 2016 1:18 am

I'm using DITA and adding an inline graphic to a task step. I'm using the PDF2 output. I add an image element and set the "placement" attribute to "inline" because I'm describing an icon the user should click. When I generate the PDF output, however, the baseline of the step text, but not the step number, has been shifted so that the text no longer lines up with the step number.
Here's an example of the output:


My question is: how can keep the line from shifting below the step number?
Posts: 329
Location: Craiova

Re: PDF output for inline graphic

Fri Oct 14, 2016 11:44 am


Unfortunately, this is a known issue that cannot be fixed due to limitations in Apache FOP processor.

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

Another option is to use a commercial XSL-FO processor: Antenna House or RenderX XEP. In this case the list item number is placed on the base line.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests