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] How to print only a chapter of a document ?


Hmm, that gives me an idea. I'm assuming he'd prefer a programmatic way
to produce the output that doesn't involve a human using Acrobat each
time. Some (all? I know xep does...I assume the others do as well) fo
renderers can output an intermediate xml format that contains all the
pagination information. They can also render this xml output as a pdf.
I'll bet you could run an xslt over the intermediate xml output from the
fo renderer to remove the unwanted chapters and then render the xml
output into a pdf.

David 

> -----Original Message-----
> From: Lech Rzedzicki [mailto:xchaotic@gmail.com] 
> Sent: Thursday, July 09, 2009 11:45 AM
> To: docbook-apps
> Cc: Christophe HARO
> Subject: Re: [docbook-apps] How to print only a chapter of a 
> document ?
> 
> On Tue, Jul 7, 2009 at 9:09 AM, Christophe 
> HARO<christophe.haro@free.fr> wrote:
> > Hi,
> >
> > I have a master document (a book) and many chapters. All 
> are included in the master document with xinclude. I want to 
> print only a chapter and all tocs from the whole document, 
> with right pages numbers, etc. Is there a technique to achieve this ?
> 
> Recommended Solution:
> Print the whole book, then extract the pages you want (TOC + 1
> chapter) in Adobe Acrobat or some other PDF tool.
> 
> 
> Explanation:
> Docbook content allows for multiple outputs, so it doesn't 
> store the pagination information as the output such as HTML 
> might not have physical pages at all. Instead the page 
> numbers are generated based on the amount of space the text 
> flow takes, so it is not possible to tell on which page your 
> chapter will be until you print the whole book.
> 
> 
> Lech
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> 
> 


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