Newbie : question about picture

Questions about XML that are not covered by the other forums should go here.
arnaudmrs13
Posts: 19
Joined: Tue Sep 18, 2007 1:45 pm

Newbie : question about picture

Post 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 !!
arnaudmrs13
Posts: 19
Joined: Tue Sep 18, 2007 1:45 pm

Sorry Sorry

Post 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>
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
arnaudmrs13
Posts: 19
Joined: Tue Sep 18, 2007 1:45 pm

Post by arnaudmrs13 »

Hello Sorin,

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

Best regards.

Arnaud
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
arnaudmrs13
Posts: 19
Joined: Tue Sep 18, 2007 1:45 pm

DOES ANYONE HAVE AN IDEA ???

Post 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
arnaudmrs13
Posts: 19
Joined: Tue Sep 18, 2007 1:45 pm

this is the result

Post by arnaudmrs13 »

Image
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
arnaudmrs13
Posts: 19
Joined: Tue Sep 18, 2007 1:45 pm

the file have been sent

Post by arnaudmrs13 »

hello,

i put xml file and picture in a zip

thx
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
arnaudmrs13
Posts: 19
Joined: Tue Sep 18, 2007 1:45 pm

Post by arnaudmrs13 »

Sorin,

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

Arno
Post Reply