WebHelp: Issues with Figures

P4jjb
Posts: 32

WebHelp: Issues with Figures

Thu May 09, 2013 10:12 pm

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

Re: WebHelp: Issues with Figures

Thu May 09, 2013 11:13 pm

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

Re: WebHelp: Issues with Figures

Thu May 09, 2013 11:30 pm

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: 4144

Re: WebHelp: Issues with Figures

Fri May 10, 2013 10:40 am

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

Return to “DocBook”

Who is online

Users browsing this forum: No registered users and 2 guests