Re: [css2xslfo-support] Problem with stupid table
Brought to you by:
wdonne
From: <wer...@re...> - 2005-04-11 14:25:27
|
Hi Andreas, You should add <col width="..."/> elements in the table. Note that for FOP the width should be fixed. I also recommend to put a tbody around the tr elements. Regards, Werner. Andreas Jung wrote: > Hi, > > I am trying to convert a stupid table from HTML -> XHTML-> PDF. > I am using css2xfo for the FO generation and FO 0.20.5 for the PDF part. > This fails badly (the generated PDF is empty): > > That's the HTML file (which is internally converted to xhtml through tidy): > > ung@localhost:/develop/repository/Haufe/Entwickler/ajung/converters: cat > out.html > <html> > <body> > <table> > <tr> > <td>a</td> > <td>b</td> > </tr> > <td>c</td> > <td>d</td> > <tr> > </tr> > > </table> > > </body> > </html> > > > Output of FO: > > ajung@localhost:/develop/repository/Haufe/Entwickler/ajung/converters: > python2.3 test.py out.html > Konvertiere out.html nach PDF|RTF|PS via XSL-FO > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > [INFO] FOP 0.20.5 > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > [INFO] building formatting object tree > [INFO] setting up fonts > [ERROR] property - "text-transform" is not implemented yet. > [ERROR] property - "text-transform" is not implemented yet. > [ERROR] Error in padding-bottom property value '0': > org.apache.fop.fo.expr.PropertyException: No conversion defined > [ERROR] Error in padding-left property value '0': > org.apache.fop.fo.expr.PropertyException: No conversion defined > [ERROR] Error in padding-right property value '0': > org.apache.fop.fo.expr.PropertyException: No conversion defined > [ERROR] Error in padding-top property value '0': > org.apache.fop.fo.expr.PropertyException: No conversion defined > [INFO] [1] > [WARNING] table-layout=auto is not supported, using fixed! > [WARNING] current implementation of tables requires a table-column for > each column, indicating column-width > [INFO] Parsing of document complete, stopping renderer > > I have no idea how to get this simple table converted. Any help is > appreciated. > > Andrea > s -- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |