Re: [css2xslfo-support] Command line for creating pdf
Brought to you by:
wdonne
From: Aaron S. <aar...@gm...> - 2010-09-07 23:02:55
|
Thanks, running the separate commands is working. Only problem is I don't specify widths for any of my table cells, such that they resize to fit contents, and this looks very nice in the browser, but the resulting PDF looks really bad. I assume this is the meaning of the table-layout="auto" not supported warning from FOP. So I am experimenting with setting pixel widths on the columns, but the spacing in the browser versus the PDF is still quite different but somewhat better. Is this just the nature of the beast and the best I can expect? -Aaron On Tue, Sep 7, 2010 at 4:20 PM, Peter Williams <wms...@gm...> wrote: > Hi Aaron, > This sounds like something similar that I worked on a couple of years ago > (having a Perl script on a Unix server run CLI commands to convert a web > page into a PDF). What I used was: > > css2xslfo1_5_2.jar <input filename> -fo <output fo file> > > fop <input fo file> <output pdf> > > I think I tried css2fopnew1_5_1.jar to output directly to PDF, but it > wouldn't convert everything the way I wanted it to. Things might have > changed a bit since then too. I know I did get this working with the two > commands above, and it converted XHTML and inline CSS (not sure about > linking the CSS file). > > Good luck, > Peter > |