xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remo Liechti" <remo.liec...@swisslog.com>
Subject RE: PDF generation
Date Wed, 09 Aug 2006 14:17:11 GMT
Hi Chris
Thanks a lot for the answers.

I think the only problem I have now is to pass the parameters to the XSL

Fop -xsl C:\xsl\fo\docbook.xsl -xml "myDocBook.xml" -pdf "myPdf.pdf"

How do I pass this parameter forcae-page-count="no-force". To this xsl?
I Tried a lot of ways, nothing worked... like:

Fop -xsl C:\xsl\fo\docbook.xsl forcae-page-count="no-force" -xml
"myDocBook.xml" -pdf "myPdf.pdf"

Any idea?


-----Original Message-----
From: Chris Bowditch [mailto:bowditch_chris@hotmail.com] 
Sent: Mittwoch, 9. August 2006 15:18
To: fop-users@xmlgraphics.apache.org
Subject: Re: PDF generation

Remo Liechti wrote:
> Hi all
> I'm new to XSL and FOP and all that stuff. I need to create a PDF out
> a docbook. My docbook looks like:
> <book lang="en">
> 	<bookinfo>
> 		<title>myTitle</title>
> 	</bookinfo>
> 	<chapter>
> 		<title>chapter one</title>
> 		<simpara>text text text</simpara>
> 	</chapter>
> </book>
> I run FOP like this:
> Fop -xsl C:\xsl\fo\docbook.xsl -xml "myDocBook.xml" -pdf "myPdf.pdf"
> It creates a PDF like this(I attached it to this mail):
> - First page with the title -> This is ok
> - Page 2: title again, but small. Nothing more on the page. -> not ok!
> - page 3: Just empty. Why's that? -> NOT OK
> - page 4: The index of the book -> NICE!
> - page 5: My Text -> ok
> My questions are:
> 1. How do tell the XSL to not create the page 2 with the small title
> not to create an empty page?

The empty page 3 might be because the attribute force-page-count="auto" 
is present on the page-sequence. This needs to 
forcae-page-count="no-force". I've no idea how to do that in Docbook. I 
also don't know why the 2nd page appears. Have you asked these questions

on the docbook forum too?

> 2. How do I tell the XSL to create Bookmarks in the PDF?

I know how to do this in raw XSL-FO, again no idea how in docbook XML, 
sorry! The exact method used to creating bookmarks is different 
depending on which version of FOP you are using?

> 3. How Do I create header and footer for this document? (I think this
> a docbook issue). But the header and footer should not appear on the
> first page as well as not on the index page.

This is possible using raw XSL-FO constructs, but I don't know how to do

it in docbook XML.

Sorry I can't help you more, but I get the feeling most of yopur 
questions would be better suited on a docbook mailing list.


To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

This message may contain legally privileged or confidential information and is therefore addressed
to the named persons only. The recipient should inform the sender and delete this message,
if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of this message.
The sender has activated an automatic virus scanning, but does not guarantee the virus free
transmission of this message.

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message