[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: adding a cover image to the PDF
Sorry, one more thing. The solution I tried DID not work. I'm looking for a quick-and-dirty solution and perhaps an idea for a template. I know Bob Staynton has a lot of info about covers and other things in Chapter 13, http://www.sagehill.net/docbookxsl/PrintCustomEx.html but I really haven't grokked it yet. (That will be my next project). But I thought if anyone had a quick-and-dirty solution to my problem, that would help me for now. rj On Wed, Aug 25, 2010 at 10:13 AM, Robert Nagle <idiotprogrammer@gmail.com> wrote: > Hi, there I need to produce a pre-release of my print book as a PDF. > It's due tomorrow. It won't be "totally ready" (and I have not added > a title page), but I just wanted to include a jpg for the page that > will be the front cover. > > I'm using Apache FOP, although eventually I'll be using XEP. > > This seems hard. > > Reading through the docs and the mailing list, I tried to do this in > my xslt file: > > ***************************************** > <xsl:template name="front.cover"> > <mediaobject> > > <imageobject role="fo"> > <imagedata fileref="fo-images/criteria-tag312.jpg" > contentwidth="7cm"/> > </imageobject> > </mediaobject> > > </xsl:template> > > <xsl:template match="book"> > <xsl:call-template name="front.cover"/> > <xsl:apply-imports/> > </xsl:template> > ***************************************************************************** > I'm sure I'm missing some subtlety here, but shouldn't be easy as this? > > One other thought is that perhaps front.cover needs to be in fo, but > frankly I have no idea how to go about that. > > This is stuff I need to learn pretty soon anyway, but for tomorrow is > there a simple and dirty solution to this? > > in my index.xml I have this at the top: > > <info> > <title>My Book Title </title> > <author> > <personname> > <firstname>Robert </firstname> > <surname>Nagle </surname> > </personname> > </author> > <!--<cover> > <mediaobject> > > <imageobject role="fo"> > <imagedata fileref="fo-images/criteria-tag312.jpg" > contentwidth="7cm"/> > </imageobject> > </mediaobject> > </cover>--> > ***************************** I tried referencing it here also without success > </info> > > > > -- > Robert Nagle > 12777 Ashford Point Dr #1417 > Houston, Texas 77082 > 713 893 3424 > htpt://www.robertnagle.info > -- Robert Nagle 12777 Ashford Point Dr #1417 Houston, Texas 77082 713 893 3424 htpt://www.robertnagle.info
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]