This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Images not included in PDF
- From: Jean-Marc Fontaine <JMFontaine at infico dot fr>
- To: Bob Stayton <bobs at caldera dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 27 Jan 2003 16:56:57 +0100
- Subject: RE: DOCBOOK-APPS: Images not included in PDF
Hello Bob,
Thanks a lot for your help.
I generated my FO file in different directory so the relative paths to the images were wrong.
I thought the FO file was a binary file with the images encapsulated inside.
Best regards
Jean-Marc
-----Message d'origine-----
De : Bob Stayton [mailto:bobs@caldera.com]
Envoyé : dimanche 26 janvier 2003 03:05
À : Jean-Marc Fontaine
Cc : docbook-apps@lists.oasis-open.org
Objet : Re: DOCBOOK-APPS: Images not included in PDF
On Fri, Jan 24, 2003 at 06:32:31PM +0100, Jean-Marc Fontaine wrote:
> Hello,
>
> I have a XML DocBook document, with images references :
>
> <figure>
> <title></title>
>
> <mediaobject>
> <imageobject>
> <imagedata align="center" fileref="images/ges_com/menu.png"
> format="PNG" />
> </imageobject>
> </mediaobject>
> </figure>
>
>
> The path to the images is correct.
>
> When I generate the HTML file using Saxon, everything is ok but when I try to generate the PDF with Saxon and FOP the images are missing in the generated PDF.
> I tried the images.fo file from the FOP examples and the generated PDF file includes the images so I think my way to launch FOP is right.
> I believe I am doing something wrong whether while calling Saxon whether in my XML DocBook document.
>
> My Saxon command line for generating the FO is the following :
> java -cp saxon.jar;saxon-fop.jar;../DocBook-XSL/extensions/saxon651.jar;../Xerces/xercesImpl.jar -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl com.icl.saxon.StyleSheet -o ..\..\Sortie\FO\Documentation.fo ..\..\Documentation\Documentation.xml ..\..\DocBook-XSL\fo\docbook.xsl fop.extensions=1
>
> My FOP command line for generating the PDF is the following :
> java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;..\Xerces\xercesImpl.jar;lib\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -fo ..\..\Sortie\FO\Documentation.fo -pdf ..\..\Sortie\PDF\Documentation.pdf
>
> Maybe I forgot some Saxon command line parameter ...
>
> Can someone help me please ?
Can you peek in your fo file with a text editor to see
if the reference to the graphic is in there with
the right path?
If so, then perhaps the problem is one of relative
paths. It looks like you are passing to FOP a relative
path to your fo file. Perhaps the relative path
of the graphic doesn't add up. Do you get any
error message about graphic file not found?
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com