Page 1 of 1

Insert logo in my first page

Posted: Fri Nov 09, 2007 4:59 pm
by arnaudmrs13
Hello

i would like to insert a logo (.png) under my project's name on the first page for pdf and html
is it possible ?
thx

Posted: Wed Nov 14, 2007 4:37 pm
by sorin_ristache
Hello,

You did not specify the type of your document. Do you want to insert the logo in a Docbook document? In that case you have to customize the Docbook schema and the Docbook stylesheets because they do not allow inserting a logo image on the title page of the transformation result (PDF or HTML).


Regards,
Sorin

Posted: Sat Jan 05, 2008 8:10 am
by rashwell
Sorin is genneraly correct, specifically if you want to get the logo in the header. But in a pinch in Docbook if you just want to see a logo of some sort on the first page of the article or book, you can inline the graphic in for example an author tag. Below is an example where I drop in a logo on the first page that during transforms to PDF uses the SVG version of the logo, and during transforms to HTML uses a PNG version.

Code: Select all


            <author>
<personname>
<inlinemediaobject>
<imageobject role="fo">
<imagedata width="48px" valign="bottom" align="left" format="svg" fileref="svg/DP_Tree.svg" />
</imageobject>
<imageobject role="html">
<imagedata width="48px" align="left" format="PNG" fileref="images/DP_Tree.png"/>
</imageobject>
</inlinemediaobject>
</personname>
</author>