On 25/11/16 10:14, Benoît Minisini wrote: > Le 24/11/2016 à 22:59, richard terry a écrit : >> Hi List, >> >> I've just encountered a situation in my medical software where the >> pathology lab has suddently started sending me histopathology reports in >> RTF format instead of plain text markup, which is of course unreadable. >> >> >> I wondered if anyone had any code to convert rich text to html or any ideas? >> >> >> Thanks >> >> >> richard >> > I think now libreoffice can convert RTF to any of its format from the > command-line, if it helps. > Thanks Benoit, quite useful, this code does it, either to a pdf or html
soffice --headless --convert-to html my_file.rtf soffice --headless --convert-to pdf my_file.rtf ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
