OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Changing the printed area of a book title page


Hi Diane,
The problem is the body region height in your current customization.  Although you set the page margins, you didn't change the body margins, which are by default 0.5in top and bottom.  See this diagram to see how both margins determine the area of the body region:
 
 
This leaves your body-region with height 11 - 0.75 - 0.5 - 0.5 - 0.5 = 8.75in which is the largest image you could fit.
 
You could set the stylesheet params 'body.margin.top' and 'body.margin.bottom' to 0pt, but that would apply to all page masters, which would eliminate the space for page headers and footers in your book.
 
So I think you need to create a custom titlepage page-master, creating a new first titlepage simple-page-master that sets the margin-bottom and margin-top to 0pt in the fo:region-body.  See this doc for more guidance:
 
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Friday, November 07, 2008 3:19 PM
Subject: [docbook-apps] Changing the printed area of a book title page

Hi,

I would like the first page of my book to display an image that would cover as much of the page as possible.

I customized fo/titlepage.templates.xml as follows:

   <t:titlepage t:element="book" t:wrapper="fo:block">
    <t:titlepage-content t:side="recto">     
     <mediaobject/>
    </t:titlepage-content>

and I used the following in the bookinfo section:
  <mediaobject>
    <
imageobject role="pdf">
    <imagedata  align="center" format="SVG" fileref="cover-image.svg"/>
   </imageobject> 
  </mediaobject>


The parameters to specify the page layout are:
 <xsl:param name="page.height.portrait">11in</xsl:param>
 <xsl:param name="page.width.portrait">8.5in</xsl:param>
 <xsl:param name="page.margin.top">0.75in</xsl:param>
 <xsl:param name="page.margin.bottom">0.50in</xsl:param>
 <xsl:param name="page.margin.inner">1.00in</xsl:param>
 <xsl:param name="page.margin.outer">1.00in</xsl:param>


When I try to generate the pdf file (using xep) I have the following error message:
[error] no space for an element, trying to recover
[error] no space for an element, trying to recover


The size of my image is 6.4x9.7 inches, which should fit. I tried to reduce the image, and the maximum size I can fit is 5.56x8.375 inches. What am I missing?

Diane Larin
INRO


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]