Tim B. wrote:

I have attached here 3 files - an XSL template, a piece of XML and a word 
document. I have 2 issues.

a) The word document when produced appears to have all sorts of page break and 
pagination issues when XML-MIND produces the DOCx file. It is also missing the 
bold formatting of items in the bullet lists which is a problem;


This is caused by margin-top="-0.3cm" in:
---
         <xsl:template match="br">
             <fo:block margin-top="-0.3cm" >&#160;</fo:block>
         </xsl:template>
---

There are also several other problems (reported by RenderX XEP) in your pdi.xsl, so please compare attached pdi.xsl [DELETED] including my fixes with your original pdi.xsl.ORI.




b) When I try to generate a PDF from from these source files, I simply get a 
broken PDF file that won’t open.


I cannot reproduce this problem neither with Apache FOP nor with RenderX XEP (before or after my pdi.xsl fixes). You must have a problem in your PDF generation process.




Any help or guidance that you can give would be much appreciated.

See attached files [DELETED]. They all look good.

I've executed the following commands on my Linux box running Java 8:

1) Generate booking.fo using Saxon 6:

saxon.sh -o booking.fo booking.xml pdi.xsl

2) Generate PDF using FOP:

fop -fo booking.fo -pdf booking.pdf

3) Generate PDF using XEP:

xep -fo booking.fo -pdf booking-xep.pdf

4) Generate DOCX using XFC:

fo2docx booking.fo booking.docx


--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to