Erik B. wrote:

I'm looking for a way to have an image on the front page of a Docbook5 
converted to PDF and/or epub.

Is this possible, and if so, how can I do it?

I've tried adding a Mediaobject to the book > info element but that didn't work.


--> XMLmind has developed the XSL stylesheets which convert DocBook to EPUB[*] and which are included in all our products, so I can easily answer the question for EPUB.

You must pass our XSL stylesheets a parameter called

epub.cover.image

The value of this parameter must be the absolute *URL* (no filename please) of a PNG image having a 1000x1000 max. size.

You are of course free to also test other image file formats (e.g. SVG, JPEG). More information in http://blog.threepress.org/2009/11/20/best-practices-in-epub-cover-images/

See for example:

http://www.xmlmind.com/xmleditor/_distrib/doc/configure/configure.epub




--> I'm sorry but I don't know the answer for the PDF output. You should refer to the documentation of the DocBook XSL stylesheets:

* DocBook XSL Stylesheet Reference Documentation by Norman Walsh.

http://docbook.sourceforge.net/release/xsl/current/doc/

* DocBook XSL: The Complete Guide by Bob Stayton.

http://www.sagehill.net/docbookxsl/



---
[*] These stylesheets are different from those found in the stock DocBook XSL stylesheets (that is, http://sourceforge.net/projects/docbook/ ).

We *unfortunately* had to develop our own stylesheets because the very first version of the stock stylesheets which generated EPUB was unusable with Saxon, the XSLT engine we use in all our products.

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to