Next in thread → Next in month →

Re: [docbook-apps] incorrect number of pages

From
robert <>
Date
2012-03-09T14:27:59+00:00
ID
Thread
Re: [docbook-apps] incorrect number of pages
Works perfectly.

Thanks

Robert

On Thu, Mar 8, 2012 at 8:13 PM, Bob Stayton <> wrote:

If I understand the problem, the special fo:block 
is at the end of content that fills out a page and so it is bumped to the next 
page, generating a blank page.

 

You might try setting a line-height="0pt" property 
on that special fo:block.  I'd also try adding a 
keep-with-previous.within-column="always" to that block too.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  robert 

  
To:  
  

  
Sent: Tuesday, March 06, 2012 1:09 
  AM

  
Subject: [docbook-apps] incorrect number 
  of pages

  

  
Hi

  

  
I use the mechanism described in the following article

  

  
http://www.sagehill.net/docbookxsl/PrintHeaders.html#PageXofY

  

  
to print the total number of pages.

  

  
It works pretty well, but from time to time I get an empty page at the 
  end of the book and the total number of pages includes that empty page. It 
  happens when the content of the book fills all the pages and the only thing 
  left (i.e. output at the last page is the <fo:block 
  id="END-OF-DOCUMENT"/> element. 

  

  
Is there a way to avoid such issue.

  

  
Thanks,

  
Robert
Next in thread → Next in month →