Insert logo in my first page

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

Insert logo in my first page

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

Post 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
rashwell
Posts: 2
Joined: Sat Jan 05, 2008 8:05 am
Location: Chicago

Post 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>
Post Reply