Recent

Author Topic: Does anyone know a good HTML to RTF converter?  (Read 5837 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Does anyone know a good HTML to RTF converter?
« on: November 28, 2014, 09:14:27 pm »
Thanks.
« Last Edit: November 28, 2014, 09:22:10 pm by typo »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Does anyone know a good HTML to RTF converter?
« Reply #1 on: November 28, 2014, 09:36:03 pm »
lzRichEdit?  :D
don't you have an ability to load HTML and then save it to RTF?

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: Does anyone know a good HTML to RTF converter?
« Reply #2 on: November 28, 2014, 09:40:09 pm »
didn't test this
 is just an idea thought
the clipboard AFAIK supports formats did you try it?
rtf supports tables
divs spans and objects might be an issue
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Does anyone know a good HTML to RTF converter?
« Reply #3 on: November 28, 2014, 09:41:42 pm »
lzRichEdit?  :D
don't you have an ability to load HTML and then save it to RTF?

RTF to HTML only.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Does anyone know a good HTML to RTF converter?
« Reply #4 on: November 28, 2014, 09:45:30 pm »
didn't test this
 is just an idea thought
the clipboard AFAIK supports formats did you try it?
rtf supports tables
divs spans and objects might be an issue

I see some suggestion of doing this on the web, but I have no HTML component to copy from. I have tried lpHTML, but it does not copy HTML to the clipboard.

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
« Last Edit: November 28, 2014, 09:57:44 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Does anyone know a good HTML to RTF converter?
« Reply #6 on: November 28, 2014, 10:05:02 pm »
i think these days it's better to talk about CSS2/CSS3 support... that brings us to a half-browser implementation. (the remaining half is JS processing)

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: Does anyone know a good HTML to RTF converter?
« Reply #7 on: November 28, 2014, 10:11:09 pm »
@skalogryz
Quote
that brings us to a half-browser implementation.
i do not agree
browser implementation requires at least ashort of a dom implementation
i'm not aware if there is a component in lazarus providing this functionality alerady
if you know please inform me

Edit***:just fund this  [ http://wiki.lazarus.freepascal.org/XML_Tutorial ]
there are DOM and DOM_HTML units and this is very nice
« Last Edit: November 28, 2014, 10:28:59 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Does anyone know a good HTML to RTF converter?
« Reply #8 on: November 28, 2014, 10:26:13 pm »
browser implementation requires at least ashort of a dom implementation
i'm not aware if there is a component in lazarus providing this functionality alerady
if you know please inform me
fcl-xml?
i think style-cascading is far more complicated task than dom manipulation.
The difference in CSS application rules is one of the browser war features.

Never met any opensource pascalish library that does it... IIRC, lpHTML does minimum (if any) of CSS.
« Last Edit: November 28, 2014, 10:29:14 pm by skalogryz »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Does anyone know a good HTML to RTF converter?
« Reply #9 on: November 29, 2014, 02:27:41 am »
How about this DLL?

The license file says:

2. Evaluation License
The standard software version is free of charge. It may be freely distributed on the sole condition that it is not altered in any way. HTML-to-RTF Pro DLL .Net evaluation version can't be used in commercial applications.

And how about this one:
http://www.trichview.com/help/index.html?idh_class_trvofficeconverter.html
« Last Edit: November 29, 2014, 04:30:14 am by typo »

 

TinyPortal © 2005-2018