[docbook-apps] Image Scaling

2007-04-26 Thread Mykone Saunders
Hello I am trying to scale an image to "50%" of a "5.25in" page margin. Below is the code. Video Logix The problem is that the image is not scalling at all it's only rendering to the full 5.25in defined in contentwidth. Am I doing something wrong? I even use instead of and th

Re: [docbook-apps] FOP 0.93 Span="inherit" warning

2007-04-26 Thread T.G. Mutato
I think your right Colin that it's nothing to worry about -- it's just an annoyance. Interestingly, I manually removed the span="inherit" from the fo file (it surrounds the Index title) -- the warning from FOP went away and the PDF file looked ok too. tgm On 4/25/07, Colin Shapiro <[EMAIL PROTEC

[docbook-apps] Images in PDF appear too large

2007-04-26 Thread T.G. Mutato
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 So far, no luck; they appear to be scaled bigger

Re: [docbook-apps] FOP 0.93 Span="inherit" warning

2007-04-26 Thread Colin Shapiro
Yeah, the default value of span is "none" ( http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#span). So, by setting span="inherit" on a child object, you are effectively setting its span attribute to "none" as well. I think the FOP developers just designed FOP to output a warning whenever a

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread Chris Chiasson
I have heard that fop is not so good at obeying the scaling commands. I can't remember where, though. On 4/26/07, T.G. Mutato <[EMAIL PROTECTED]> wrote: 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 ex

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread Colin Shapiro
I'm currently working with a custom stylesheet I wrote from scratch (not DocBook) to generate FO from an XML document, and I'm using FOP v0.93. I've found that the image scaling does work. If I use the following FO: then the image is scaled properly to the given width, and the proportions rem

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread Chris Chiasson
Hrm, maybe I was thinking of fop 0.2x I did (re)find more info on DocBook's scaling attributes: http://www.docbook.org/tdg5/en/html/imagedata.html On 4/26/07, Colin Shapiro <[EMAIL PROTECTED]> wrote: I'm currently working with a custom stylesheet I wrote from scratch (not DocBook) to generate F

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread T.G. Mutato
Was this for an image that is 100 pixels wide Colin? Or was the example meant to say ..."width=100%"...? Thanks, tgm On 4/26/07, Colin Shapiro <[EMAIL PROTECTED]> wrote: I'm currently working with a custom stylesheet I wrote from scratch (not DocBook) to generate FO from an XML document, and

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread Colin Shapiro
No, I meant pixels, as I wrote. It works this way for an image of any size; if my source image is 800px wide and 600px tall, then the FO will render my image as 100px wide and 75px tall (preserving the proportions). Colin On 4/26/07, T.G. Mutato <[EMAIL PROTECTED]> wrote: > content-width=

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread Bob Stayton
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. W

Re: [docbook-apps] Image Scaling

2007-04-26 Thread Bob Stayton
You should use width="5.25in" to set the viewport area reserved for the graphic, and then scale="50" will make it half that size. The contentwidth attribute specifies the size of the output image. In your example, the contentwidth attribute is overriding the scale attribute. See the second-t

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread T.G. Mutato
The example was just one of the many I tried Bob. Even something very simple like 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 <[EMAIL PROTECTED]> wrote: Hi,