PDF creation /scalefit issue

Post here questions and problems related to editing and publishing DITA content.
typhoonHIL
Posts: 2
Joined: Thu Sep 21, 2017 4:38 pm

PDF creation /scalefit issue

Post by typhoonHIL »

Hi!

I have an issue with generating PDFs. When the image title is below the image and the scalefit is "yes" on the image there is a huge space between the image and the title in the PDF. The image is scaled to fit the document width but the height seems to have a 'placeholder' for the original height and just at that point the title is placed. Anyhow we can resolve this issue? Btw when using scale or width/height it works.

Using Oxygen XML Editor 19.0 build 2017062918

Thanks!
Robert

Code: Select all


<fig id="fig_bfw_y5t_p1b">
<title>Mask dialog</title>
<image href="../Images/mask_01.jpg" id="image_cfw_y5t_p1b" align="center" scalefit="yes"/>
</fig>

And the output would be


Image


In places where scalefit is not declared or scale/width/height is used the title is right under the image


Image
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Re: PDF creation /scalefit issue

Post by xephon »

https://github.com/dita-ot/dita-ot/issues/2663

Probably related to this scalefit issue. :(
stefan-jung.org – Your DITA/DITA-OT XML consultant
typhoonHIL
Posts: 2
Joined: Thu Sep 21, 2017 4:38 pm

Re: PDF creation /scalefit issue

Post by typhoonHIL »

Thank you for pointing me in this direction. The solution works in some cases when the image is larger than the page. In cases where the image is small, like an icon, it is stretched to full page width. I'll keep looking.
Post Reply