Hello,
Yes that should be possible.
Unfortunately there is no example available that does exactly this. However
I think that on the JTidy website you can find examples how to create a DOM
Document from a HTML File using JTIDY. I think that I havw seen a parse
Method in the jtidy API that can be helpful.
Kind regards Robert
-----Ursprüngliche Nachricht-----
Von: javijava [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. April 2008 10:33
An: [email protected]
Betreff: Re: AW: .FOP (with HTML embedded) to PDF,RTF,DOC,ODT ....etc
Um, that sounds very interesting, Robert.....
Then... in a java class..... probably, I can make an instance of jtidy and
pass a variable to him with HTML code and put the result into a variable.
Later to use that second variable to pass it t as parameter to an instance
of then FOP and... uff !
to create a pdf (or another type of) file.
Is that possible ?
There is some example available?
sorry, because i'm in the job and i don't have a lot of time to investigate,
as I would like.
Thanks for the aid to all!
____________________________________________________________________-
Robert Eberhardt wrote:
>
> Hello,
>
> I thin your proble ist hat fop can not process html documents. Because
> html
> is not valid XML. You should use a Tool like jTidy to convert your html
> source to XHTML and then use fop to create a pdf file from the xhtml file
>
> HTML ====> XHTML =====> FO ======> PDF
> jTidy XSLT FOP
> --
> Robert
> -----Ursprüngliche Nachricht-----
> Von: javijava [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 22. April 2008 12:24
> An: [email protected]
> Betreff: Re: .FOP (with HTML embedded) to PDF,RTF,DOC,ODT ....etc
>
>
> Thanks 4 the reply!
>
> "Not directly. If your source document still contains XHTML elements,
> those can be transformed to FO by means of XSLT."
>
> Then i can't have a xml with the content and a xslt with the format
> (template tags)
> and transform it to -> .fo -> pdf without fo: tags .......
>
> I need translate by hand ALL the .html tags to .fo tags then?
> there is not exist anything to translate this more easy?
>
> :-(
>
> thanks a lot
>
> --
> View this message in context:
>
http://www.nabble.com/.FOP--%28with-HTML-embedded%29--to--PDF%2CRTF%2CDOC%2C
> ODT-....etc-tp16806470p16823771.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/.FOP--%28with-HTML-embedded%29--to--PDF%2CRTF%2CDOC%2C
ODT-....etc-tp16806470p16833352.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]