|
From: Tim W. <tw...@re...> - 2005-07-20 15:39:19
|
On Sun, Jul 10, 2005 at 11:58:48PM +0100, Tony Graham wrote:
> The code now in CVS formats fo:external-graphic with the GNOME Print
> backend as well as used to be done with the PDFlib backend. I.e.,
> fo:external-graphic works, but you need to specify content-width and
> content-height to get space allocated for the graphic.
>=20
> Can someone try it out to see if it works for them? If it does, I'll
> then make a 0.3.5 and announce that on the external lists rather than
> 0.3.4.
Works here in that I get pictures included in the output (yay!),
except of course you need to make this change to libfo-compat.xsl:
Index: libfo-compat.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/xmlroff/xmlroff/libfo-compat.xsl,v
retrieving revision 1.14
diff -d -u -r1.14 libfo-compat.xsl
--- libfo-compat.xsl 8 Jul 2005 12:36:06 -0000 1.14
+++ libfo-compat.xsl 20 Jul 2005 15:32:18 -0000
@@ -150,12 +150,6 @@
</fo:block>
</xsl:template>
=20
- <xsl:template match=3D"fo:external-graphic">
- <xsl:if test=3D"$verbose">
- <xsl:message>Removing 'fo:external-graphic'.</xsl:message>
- </xsl:if>
- </xsl:template>
-
<xsl:template match=3D"fo:region-body/@region-name">
<xsl:if test=3D"$verbose">
<xsl:message>Removing 'fo:region-body' region-name attribute.</xsl:m=
essage>
A couple of things seem wrong though:
* Transparency seems to come out as black though -- is that something
that's easy to fix?
* My captions seem to disappear, perhaps underneath the image. I'm
using DocBook XML like this:
<figure id=3D"fig-scale">
<title>Scale image using <application>The GIMP</application></title>
<mediaobject>
<imageobject>
<imagedata fileref=3D"figs/photos-scale-en.png" format=3D"PNG"
contentwidth=3D"3in" contentdepth=3D"4in"/>
</imageobject>
</mediaobject>
</figure>
I can see the caption in the XSL-FO, but not in the resulting PDF.
Known issue with external-graphic placement?
Tim.
*/
|