[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [SPAM] FOP 0.92b and Graphics Resizing
I posted 2 weeks ago about a severe error being generated when attempting to
use FOP 0.92b instead of version 0.25 in our DocBook->PDF build process:
http://lists.oasis-open.org/archives/docbook-apps/200611/msg00141.html
The error is of the type:
[fop] SEVERE: javax.xml.transform.TransformerException: Some content
could not fit into a line/page after 50 attempts. Giving up to avoid an
endless loop. (fo:list-item, location: 2/1786)
After a few mails back and forth on the FOP mailing list, it turns out that
the problem is with the use of graphics. With FOP 0.25, if the graphics were
too wide to fit the page, they appear to have been automatically resized;
otherwise, they remained the same intrinsic size. There was no need to set
any imagedata element attributes, even though some graphics were wider than
the actual width of the document.
Here's an example of an imagedata element from one of our docs:
<mediaobject>
<imageobject>
<imagedata fileref="images/payment_account_types.png" />
</imageobject>
</mediaobject>
</screenshot>
This results in the following entry in the FO file:
<fo:external-graphic src="images/payment_account_types.png" width="auto"
height="auto" content-width="auto" content-height="auto"/>
A user has suggested replacing "auto" by "scale-to-fit" for the value of
content-height. However, I don't know how to change our DocBook XSL
customised layer to accommodate this. Would be grateful for any help.
Regards,
P.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]