You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Andre Groeneveld <an...@isservices.co.za> on 2007/02/15 13:01:56 UTC

html with FOP.

Hi All,
 
Is it possible to create a PDF document with FOP if I have a HTML and no
XML document?
 
Thanks in advance.

Confidentiality Caution and Disclaimer

This message and/or any attachment thereto ("the message")
contains privileged and confidential information intended
only for the recipient named above. 
If you are not the intended recipient of this message,
please erase it permanently once you have notified the
sender, per return e-mail, that you have received the
message in error.
Unless the sender is duly authorised by either the Telesure
Group, or any of its subsidiary companies or I.S Services
("the Group") to send this message and unless the content
of this message is also duly authorised by the Group, any
views expressed in this message are those of the individual
sender and the Group will not accept liability therefore,
nor for any consequential damage arising therefrom.
Any recipient of an unacceptable communication, a chain
letter or offensive material of any nature is requested
to report it to postmaster@isservices.co.za.

Re: html with FOP.

Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi Andre,

Andre Groeneveld a écrit :
> Hi All,
>  
> Is it possible to create a PDF document with FOP if I have a HTML and no
> XML document?

Have a look at CSSToXSLFO [1]. It can convert an XHTML document with CSS
statements into FO, which you can then convert to PDF with FOP.

If your source document is HTML and not XHTML, you may first convert it
to XHTML using tidy [2].

I haven't tested it but this route should work well.

[1] http://www.re.be/css2xslfo/
[2] http://tidy.sourceforge.net/


HTH,
Vincent


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