OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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,
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


----- Original Message ----- 
From: "T.G. Mutato" <throw6617@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, April 26, 2007 1:25 PM
Subject: [docbook-apps] Images in PDF appear too large


> I've been trying to get inline images in a PDF file to appear
> correctly but they always seem to big. I've been following the advice
> in Bob's excellent book (also available at
> http://www.sagehill.net/docbookxsl/ImageSizing.html) and using
>
> <inlinemediaobject>
>  <imageobject>
>    <imagedata fileref="images/image.png" format="PNG" scalefit="1"
> width="100%" contentdepth="100%"/>
>  </imageobject>
> </inlinemediaobject>
>
> So far, no luck; they appear to be scaled bigger than they actually
> are (the actual image is 36 pixels wide by 14 pixels high and has a
> resolution of 72 dpi -- the image appears roughly  1.5 times larger
> than actual when looking at the document on screen or printed out).
> I'm using the XSL 1.72.0 stylesheets and FOP 0.93 on Windows.
>
> Any other ideas on configuration? Maybe I need to include something
> about resolution in the FOP configuration file?
>
> Thanks,
> tgm
>
> ---------------------------------------------------------------------
> 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]