[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Images in PDF appear too large
The example <imagedata fileref="images/image.png" format="PNG" scalefit="1" width="100%" contentdepth="100%"/> was just one of the many I tried Bob. Even something very simple like <imagedata fileref="images/image.png" format="PNG"/> didn't work for the inline image. I also tried specifying the actual width and height of the graphic but that didn't work either; it still looked to big. On 4/26/07, Bob Stayton <bobs@sagehill.net> wrote: > Hi, > Actually, that example is for a mediaobject, not an inlinemediaobject. The > width attribute is specifying the size of the viewport, and width=100% is > going to mean the width of the current block. Then scalefit="1" means to > scale it up to fit that viewport. That's why they are too big. > > When you say contentdepth="100%", that means to make the image 100% of its > natural size, which may or may not be known to the processor. If you want > this image to appear inline, I would suggest specifying the contentdepth in > terms of the line height, perhaps as 1.2em or some such, and not specify > the viewport size at all. > > Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]