WebHelp: Issues with Figures

P4jjb
Posts: 32
Joined: Tue Dec 18, 2012 3:22 am

WebHelp: Issues with Figures

Post 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!
P4jjb
Posts: 32
Joined: Tue Dec 18, 2012 3:22 am

Re: WebHelp: Issues with Figures

Post 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.
P4jjb
Posts: 32
Joined: Tue Dec 18, 2012 3:22 am

Re: WebHelp: Issues with Figures

Post 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!
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: WebHelp: Issues with Figures

Post 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
Post Reply