[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Images in PDF appear too large
Hi, Your examples use "px" (pixels) as the units for scaling, but px is not well defined in XSL-FO. In XEP, the doc says it assumes 120 dpi for pixels, although the XSL-FO spec suggests 90 dpi. I don't know what FOP assumes. I would suggest you use a unit such as "in" or "mm" to specify the size. You should be able to just set contentwidth="0.25in", and the image will be output 0.25 in wide and scaled proportionally, with the viewport the same size. That should work in both XEP and FOP. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "T.G. Mutato" <throw6617@gmail.com> To: <docbook-apps@lists.oasis-open.org> Sent: Friday, April 27, 2007 12:15 PM Subject: Re: [docbook-apps] Images in PDF appear too large > If attachments work then you'll see an example of a short DocBook file > with several image tests, both block and inline as well as the FO and > PDF output. I couldn't find any combination (although I'm sure I > missed a few) where the images were sized properly using FOP 0.93; > they all looked too big. Using the XEP processor was a bit better, > although not perfect either. > > Getting images to NOT scale turns out to be a lot tougher than I ever > thought it would be. > > tgm > > On 4/26/07, T.G. Mutato <throw6617@gmail.com> wrote: >> 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. > -------------------------------------------------------------------------------- > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]