Page 1 of 1

PDF creation /scalefit issue

Posted: Thu Sep 21, 2017 5:15 pm
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

Re: PDF creation /scalefit issue

Posted: Fri Sep 22, 2017 9:26 pm
by xephon
https://github.com/dita-ot/dita-ot/issues/2663

Probably related to this scalefit issue. :(

Re: PDF creation /scalefit issue

Posted: Thu Oct 05, 2017 1:21 pm
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.