RE: [docbook-apps] Image Size Error and Other issues with Fop0.93

From
"Eavid Dramer"
Date
2007-07-18T17:25:07+00:00
ID
Thread
RE: [docbook-apps] Image Size Error and Other issues with Fop0.93
Dishaa,

Have you tried setting any attribute to scale the 
image to something reasonable for the paper size you're using? E.g. for a 
reasonably square graphic, contentwidth="6in" should do the trick. I haven't 
used fop 0.93, but using XEP this works fine. If the image is very tall and 
narrow, you would need to set contentwidth to something such that the height 
fits when scaled proportionally. We use contentwidth to scale the 
images for fo/pdf and set ignore.image.scaling for html. 

 

See http://www.sagehill.net/docbookxsl/ImageSizing.html for 
more details.

 

David

  

  
  From: Dishaa [mailto:] 
  
Sent: Wednesday, July 18, 2007 10:10 AM
To: M.Canales.es; 
  
Subject: Re: [docbook-apps] Image 
  Size Error and Other issues with Fop0.93

  

Thank You!

The # 2 Warning message got solved the instant I 
  began using DocBook XSL v 1.72.0. Since I was using v1.68 with fop 0.93, maybe 
  I was hitting that message.

# 3 - Solved.

# 4 - No resolution. 
  Graphics and Figure titles are getting split at the end of the page. I am 
  hoping that if I fix my image scaling issue, this ugliness should go 
  away.

# 5 - Thank you! I corrected it to v 1.72.0!

# 6 - .Gifs 
  work as of now. Just that I had named my files Note.gif and Important.gif 
  instead of note.gif and important.gif. And I thought I had fixed 
  that!

Dishaa

"M.Canales.es" 
  <> wrote:
  El 
    Lunes, 16 de Julio de 2007 17:06, Dishaa escribió:

> 1. Images - 
    The images appear bigger. I am new to XML/XSL:FO and I am
> striving 
    to find how to solve the image issue. Needless to say, I am
> nowhere 
    close to resolving it. 
    

http://xmlgraphics.apache.org/fop/0.93/graphics.html#resolution

> 
    2. I keep hitting the WARNING: The contents 
> of row 1 are taller 
    than they should be (there is a
> block-progression-dimension or 
    height constraint on the indicated row). Due
> to its contents the row 
    grows to 14400 millipoints, but the row shouldn't
> get any taller 
    than MinOptMax[min=opt=max=14000] millipoints.
> (fo:table-row, 
    location: 385/2553) error. I have no idea how to resolve
> this. 
    
> 3. Jul 16, 2007 10:46:14 AM 
> 
    org.apache.fop.layoutmgr.table.TableContentLayoutManager
> 
    createElementsForRowGroup - Any idea what kind of solution this 
    requires?

Both are the same error. In the FO file, at line 385, 
    column 2553, you will 
find the start point of the fo element that is 
    generating that error. 

Without having the fo code and the xml 
    xources that generates it is dificult 
to know what happens.

> 
    4. The "Keep-together property" seems to work with admonitions, but 
    again,
> not with images. Can anyone tell me if this HAS or HAS NOT 
    been fixed with
> fop.093? This page break at the wrong places happens 
    either if I use the
> customization layer I created or the docbook.xsl 
    stylesheet that is part of
> Serna's distribution. 

I use only 
    the admonitions graphics, but 
    in

http://xmlgraphics.apache.org/fop/compliance.html 

say that 
    keep-toghetther.* and keep-with-next.* work on all block-level FO 
    
elemments. And keep-with-previous.* work in all block elemments except 
    list- 
and table-related FO blocks. Thus it should work if placed in the 
    proper fo 
tag.

> 5. Another major issue is: When I use the 
    default 
> docbook.xsl which is part of Serna's stylesheet 
    distribution, the
> Fop1.extension for PDF bookmarks works well. When 
    I use the customization
> layer, the bookmarks do not appear. There is 
    obviosuly something wrong with
> this customization layer. 
    

> 
> 
    href="/home/dganapathy/Files/stylesheets/docbook-xsl-1.68.1/fo/docbook.xsl"
>/> 
    

Fix the DocBook-XSL version in 
    your customization layout.

> 6. The graphics are still not 
    appearing in both 
> cases for admonitions.

Try using the .png 
    ones, they work fine to me.

-- 
Manuel Canales 
    Esparcia
Usuario de LFS nº2886: http://www.linuxfromscratch.org
LFS en 
    castellano: http://www.escomposlinux.org/lfs-es 
    http://www.lfs-es.info
TLDP-ES: 
    http://es.tldp.org

---------------------------------------------------------------------
To 
    unsubscribe, e-mail: 
For 
    additional commands, e-mail: 
    

  
Dishaa Ganapathy 
Princeton, NJ
Tel: 678-925-2072|Email: 

  
"The real voyage 
  of discovery consists not in seeking new landscapes, but in having new 
  eyes."  - Marcel Proust

  

  
  Fussy? Opinionated? Impossible to please? Perfect. Join 
  Yahoo!'s user panel and lay it on us.