Page 1 of 1

Newbie : question about picture

Posted: Tue Sep 18, 2007 1:57 pm
by arnaudmrs13
Hello everybody,

i'm looking for a way to insert picture and screen print in a docbook, all the picture are in local computer. Does anyone could write me the code cause i had tried to install the jai and jimi1_0 patch for the picture touch but it's doesn't work.

Thanks a lot !!

Sorry Sorry

Posted: Tue Sep 18, 2007 2:42 pm
by arnaudmrs13
Ok it's fine, this way is one of the solution to put jpeg or png in the docbook

<sect1>
<title>Section1 Title</title>
<subtitle>Section1 Subtitle</subtitle>
<para>Text
<graphic fileref="C:/TuxDebian.png"/>
</para>
</sect1>

Posted: Tue Sep 18, 2007 3:16 pm
by sorin_ristache
Hello,

In the Docbook XML document you can use the screenshot element:

Code: Select all


<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="path/to/TuxDebian.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
Did you install the JIMI library or the JAI one as specified in the User Manual?


Regards,
Sorin

Posted: Tue Sep 18, 2007 3:23 pm
by arnaudmrs13
Hello Sorin,

yes i did install the librairy JIMI and JAI as indicated in the user manual.

Best regards.

Arnaud

Posted: Tue Sep 18, 2007 3:46 pm
by sorin_ristache
How do you include the image in the XML document? Is it a screenshot element or other element? Is there any error message displayed in the FOP output when you tried to use a PNG image? Do you have FOP output enabled in the preferences? Is there any error message displayed by the transformation in the errors panel at the bottom of the oXygen window?


Regards,
Sorin

DOES ANYONE HAVE AN IDEA ???

Posted: Thu Oct 04, 2007 1:49 pm
by arnaudmrs13
Hello Sorin

well, i had follwo the official tutorial to install the librairy JIMI and JAI indicated here : http://www.oxygenxml.com/documentation.html

And i do not have error message displayed in the FOP output when you tried to use a PNG or JPG image.

Code: Select all


    <screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="C:/docbook/1.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>

<figure id="welcome_help_roles">
<title>Some texts here</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="C:\Users\arnaud\Desktop\docbook\1.jpg" format="JPG"/>
</imageobject>
<textobject>
<phrase>Documentation paths for different roles</phrase>
</textobject>
<caption>
<para>Roles and Documentation</para>
</caption>
</mediaobject>
</screenshot>
</figure>

and when i open the pdf document, there is no image, and that's the same problem with an HTML document, no image

I don't know what to do

Sniff

this is the result

Posted: Thu Oct 04, 2007 2:36 pm
by arnaudmrs13
Image

Posted: Thu Oct 04, 2007 3:25 pm
by sorin_ristache
Hello,

Can you send us an archive with some sample files for reproducing the problem (XML file, image files)? It is hard to find what is wrong without some sample files.


Regards,
Sorin

the file have been sent

Posted: Fri Oct 05, 2007 10:32 am
by arnaudmrs13
hello,

i put xml file and picture in a zip

thx

Posted: Fri Oct 05, 2007 5:25 pm
by sorin_ristache
Hello,

The image file names are 01.jpg and 01.png but you used in the XML file the name 1.jpg. You have to use the filename that exists on disk. If you want to use the PNG image instead of the JPG one you have to put the JIMI library in the oXygen lib folder when you apply the Docbook transformation. I will send you an email with the result PDF file containing the PNG images.


Regards,
Sorin

Posted: Fri Oct 05, 2007 6:47 pm
by arnaudmrs13
Sorin,

Thank you very much for your help, your are the best !!

Arno