[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Fitting tall images in PDF
Hi Mark,I'm not sure you can do that with XSL-FO. It works for width because an image is not competing with other content for width space. So defining width="100%" means the dedicated viewport is 100% of the width of the page between margins, and the image is located within that viewport, sized down to fit if necessary.
If you set depth="100%", you are creating a viewport that is the height of the remaining space on the page, not the whole page. So the height of that viewport depends on what precedes the image on the page.
-- Bob Stayton Sagehill Enterprises bobs@sagehill.net On 1/2/2014 1:20 AM, Mark Craig wrote:
Hello, As suggested in http://www.sagehill.net/docbookxsl/ImageSizing.html, I have been using <imagedata ... scalefit="1" width="100%" contentdepth="100%"/> to keep images at their natural size unless too wide to fit. What are the settings to do the same with regard to image depth (i.e. height)? In other words, keep images at their natural size unless too tall to fit. Adding depth="100%" and contentwidth="100%" does not seem to fit overly tall images. Perhaps this is because, "The following attributes are mutually exclusive: contentwidth, scale, and scalefit. If more than one of these attributes is used on an image, then the earliest one in this list takes precedence." At present I'm still using 1.76.1 stylesheets. Thanks for suggestions. Regards, Mark
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]