Page 1 of 1

WebHelp: Issues with Figures

Posted: Thu May 09, 2013 10:12 pm
by P4jjb
Hi Radu and Sorin,

We're having a number of issues with figures.

1. Lots of spacing above and below the figure.

2. For about 50% of the figures, the bottom border is missing or thinner. In one instance, the right border of the figure is thinner.

Where is figure spacing and framing defined in the XSLT?

Thanks!

Re: WebHelp: Issues with Figures

Posted: Thu May 09, 2013 11:13 pm
by P4jjb
Actually, I realize now I may be using the image attributes incorrectly.
I thought width and depth were required attributes, and then you specified scale to shrink the image to fit.
Seems like the correct attribute combination (at least for our output now) is width, depth, and scalefit.

Re: WebHelp: Issues with Figures

Posted: Thu May 09, 2013 11:30 pm
by P4jjb
The transforms handle the attributes differently.
Specifying width, depth, and scalefit="1" looks good in the WebHelp, but bad in the PDF. The image runs off the right side of the page in the PDF.
Specifying width, depth, scalefit="1" and scale="70" looks good in the PDF, but bad in the WebHelp. In the WebHelp, there's much spacing above and below the figure.

Is there some setting or setting I need to specify in either transform to get this working?

Thanks!

Re: WebHelp: Issues with Figures

Posted: Fri May 10, 2013 10:40 am
by sorin_ristache
Hi,

It is better to have the width and heigth set in the image file so that you should not need to add the width and height image attributes in the XML file. This will display the images with their correct size in the Webhelp output and also in the PDF output. For PDF the DPI setting of the image is also important and it is better to add the DPI setting in the image file instead of setting a scale attribute in the XML file (scale or scalefit). Please look at this topic in the User Manual.


Regards,
Sorin