On 09/04/2011 11:16 PM, John Parker wrote:
>
> When I run fo2odt against sample file userguide.fo, the resulting ODT
> file contains no pictures.
>
> The problem is 100% repeatable.
>
> The operating system is Debian 6.0
> Java version is 1.5.0 [gij (GNU libgcj) version 4.4.5]
> XMLmind XSL-FO Converter version is 4.5.0
>
> To reproduce the problem, I follow these steps.
>
> 1.  Change directory to /opt/xfc_perso_java-4_5_0/samples.
>
> 2.  Run: /opt/xfc_perso_java-4_5_0/bin/fo2odt userguide.fo userguide.odt
>
> Expected result: An ODT file is produced that includes pictures.
>
> Actual result: An ODT document is produced that includes picture place
> holders but not the pictures themselves.
>
> Comment: The FO file appears to contain correct references to the
> picture files. For example:
>
> <fo:block id="d5e2284">
>      <fo:external-graphic src="url(sdt/drop-down-list-2.png)"
> width="auto" height="auto" content-width="auto" content-height="auto"/>
> </fo:block>
>
> When fo2odt runs, it raises error messages like:
>
> warning: failed to load image
> "file:/opt/xfc_perso_java-4_5_0/samples/sdt/drop-down-list-2.png":
> cannot create an ImageInputStream out of a java.io.InputStream
> (file:///opt/xfc_perso_java-4_5_0/samples/userguide.fo, line #121,
> column #2409)
>
> The picture files exist in the location specified and they can be opened
> in a graphics viewer.
>
> Is this a bug?

This is unlikely.

I've noticed that you use "gij (GNU libgcj) version 4.4.5". We do not 
support libgcj at all, only Sun/Oracle Java and Apple Java. Therefore I 
would say that the problem comes from the use of libgcj.

See 
http://www.xmlmind.com/foconverter/_distrib/doc/user/system_requirements.html 
:

---
System requirements

     Sun or Apple Java™ runtime 1.4 or above.

     Important

     SVG and MathML support requires using Java™ 1.5+.
---



---
PS: In the general case, when you have problems with image support in 
XFC, you should refer to this FAQ: 
http://www.xmlmind.com/foconverter/faq.html#image_not_showing

``My .fo file contains a fo:external-graphic element which points to an 
existing JPEG file, but this image is not showing in the document 
generated by XFC. Are there known bugs related to image support in XFC?''
 
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to