Page 1 of 1

.PNG files being ignored

Posted: Mon May 23, 2005 12:44 pm
by PeterRobertson
I have a simple docbook file:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
"C:\Program Files\Oxygen 5.1\frameworks\docbook\dtd/docbookx.dtd">
<book>
<chapter>
<title>Test</title>
<section><title>Testing</title>
<para>Testing a png:
<inlinemediaobject>
<imageobject>
<imagedata format="PNG" fileref="/TEMP/XML/images/important.png"/>
</imageobject>
</inlinemediaobject>
: done.
</para>
</section>
</chapter>
</book>
When using the standard Docbook PDF transformation supplied with
Oxygen, the picture does not appear. If I convert the file to .GIF, the
equivalent input does produce the picture (although extremely blurred).

What is going on?

Posted: Tue May 24, 2005 10:06 am
by sorin_ristache
Hello,

How to include PNG images in the final PDF document is documented in our user manual. Please see

http://www.oxygenxml.com/doc/ug-oxygen/ ... ssors.html

Best Regards,
Sorin

Installed libraries as documented, no PNGs in PDF.

Posted: Mon Mar 27, 2006 6:04 pm
by robert3L
I have pretty much the same XML in source.

Code: Select all


<figure id="welcome_help_roles">
<title>Some texts here</title>
<screenshot>
<mediobject>
<imageobject>
<imagedata fileref="help_home/screenshots/getstart/help_rolse.png" format="PNG"/>
<imageobject>
<textobject>
<phrase>Documentation paths for different roles</phrase>
<textobject>
<caption>
<para>Roles and Documentation</para>
</caption>
</mediobject>
</screenshot>
</figure>
I have read the manual (which is not very clear whether you need both JIMI and JAI for PNG, or just one of the two. Manual is also out of date wth user intrface. See e.g. Common Transofrmations- much is out of date with the 7.1 UI).

On a pretty standard Windows XP installation of Oxygen (all defaut with bundled JRE), I have installed both libraries, trying each one alone, and then installing both. all as described in the manual.

So I now have JimiProClasses.zip installed to C:\Program Files\Oxygen\lib. I also have jai_codec.jar, jai_core.jar and mlibwrapper_jai.jar installed there. My PATH environment variable contains the path to the native DLLs (C:\jai-1_1_2_01\lib). I have restarted Oxygen and when the png images still didn't appear in PDF output I restarted Windows thinking maybe PATH didn't update. I've just rechecked against the manual 5 times. There is still a chance that I have screwed up something but I don't think so this time. :!: :shock:

PMG images still don't appear in PDF. (Everything else is great!)
HELP please anyone?? :?:

Re: .PNG files being ignored

Posted: Tue Mar 28, 2006 1:19 pm
by sorin_ristache
Hello,
PeterRobertson wrote:I have a simple docbook file:
robert3L wrote:I have pretty much the same XML in source.

Code: Select all


<figure id="welcome_help_roles">
<title>Some texts here</title>
<screenshot>
<mediobject>
<imageobject>
<imagedata fileref="help_home/screenshots/getstart/help_rolse.png" format="PNG"/>
<imageobject>
<textobject>
<phrase>Documentation paths for different roles</phrase>
<textobject>
<caption>
<para>Roles and Documentation</para>
</caption>
</mediobject>
</screenshot>
</figure>
Your code is not DocBook. Did you validate your file against a DocBook schema ? More than that it is not well-formed XML. There are also validation errors. For example mediobject does not exist in DocBook. Maybe it should be mediaobject. If it is not valid it is possible that the DocBook stylesheets do not include the image in the FO file. If you use other schema for validation you should post that. Also if you use other schema we have to see the FO file that is input for the FO processor in order to see why the image is not included in the PDF. After I corrected the errors I generated a PDF file from your figure using JIMI and other PNG image. If you want to see a sample I can upload it on a server and I can post the URL here. My figure is:

Code: Select all

<figure id="welcome_help_roles">
<title>Some texts here</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="img/caution.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Documentation paths for different roles</phrase>
</textobject>
<caption>
<para>Roles and Documentation</para>
</caption>
</mediaobject>
</screenshot>
</figure>
robert3L wrote:I have read the manual (which is not very clear whether you need both JIMI and JAI for PNG, or just one of the two.
sorin wrote:How to include PNG images in the final PDF document is documented in our user manual. Please see

http://www.oxygenxml.com/doc/ug-oxygen/ ... ssors.html
I quote from that page of the manual:
To include PNG images in the final PDF document you need the JIMI or JAI libraries.
So you need the JIMI library or the JAI library for PNG images. What is not clear here ?
robert3L wrote:Manual is also out of date wth user intrface. See e.g. Common Transofrmations- much is out of date with the 7.1 UI).
Manual is not out of date. The path to the manual pages changed on the server for new versions of <oXygen/>. The old URLs included in the old forum posts point to the old versions of the manual. You should use the links included in the posts only for reading about the problem of that forum topic. For the latest version you must go to the Documentation page.
robert3L wrote:On a pretty standard Windows XP installation of Oxygen (all defaut with bundled JRE), I have installed both libraries, trying each one alone, and then installing both. all as described in the manual.

So I now have JimiProClasses.zip installed to C:\Program Files\Oxygen\lib. I also have jai_codec.jar, jai_core.jar and mlibwrapper_jai.jar installed there. My PATH environment variable contains the path to the native DLLs (C:\jai-1_1_2_01\lib). I have restarted Oxygen and when the png images still didn't appear in PDF output I restarted Windows thinking maybe PATH didn't update. I've just rechecked against the manual 5 times. There is still a chance that I have screwed up something but I don't think so this time. :!: :shock:

PMG images still don't appear in PDF. (Everything else is great!)
HELP please anyone?? :?:
Like I said if you need a sample PDF generated from the figure that I posted and JIMI installed as described in the manual page from the link just let me know.

Regards,
Sorin