I cannot save some HTML file to RTF.
I have not been able to identify what part of the HTML makes it failing.
Note that the HTML file refers to some images: I tried to do the export with and without the images without any difference.
Exporting the file to ODT works fine.
Steps to Reproduce:
1. Open the attached file export_input.html with Writer (not Writer/Web)
2. Save as RTF document
The save process seems to never end and a growing tmp files is created. It can go up to 4 Go where I decided to kill the process.
The doc is properly saved as an RTF document
User Profile Reset: No
Build ID: 6.2.4-1
Threads CPU : 8; OS : Linux 5.1; UI Render : par défaut; VCL: gtk3;
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Created attachment 152345 [details]
HTML file that makes the export crash
Created attachment 152346 [details]
HTML file with its pictures
This zip files also contains the pictures that the HTML refers to. The bug can be reproduced without it, but I originally obtained it with them.
Confirmed with Version: 126.96.36.199 (x64)
Build ID: 9a940173fab1747f02322bc89779759d52b3a086
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win;
Locale: ru-RU (ru_RU); UI-Language: en-US
and with current master (tested attachment 152345 [details]).
Code pointer from debug (I don't plan to work on this, so hopefully this saves a few cycles to whoever fixes this): MSWordExportBase::WriteText never finishes, with m_pTableInfo->getNextNode(pCurrentNode) returning node 354 for current node 359, creating infinite loop.
I tried with: instdir/program/soffice --headless --convert-to rtf /home/xisco/Baixades/export_input.html --outdir /home/xisco/Baixades/output/
and it claims:
Error: no export filter for /home/xisco/Baixades/output/export_input.rtf found, aborting.
Error: no export filter
How can I export the HTML to RTF ?
(In reply to Xisco Faulí from comment #4)
> I tried with: instdir/program/soffice --headless --convert-to rtf
> /home/xisco/Baixades/export_input.html --outdir /home/xisco/Baixades/output/
> and it claims:
> Error: no export filter for /home/xisco/Baixades/output/export_input.rtf
> found, aborting.
> Error: no export filter
> How can I export the HTML to RTF ?
You need to add "--writer" to the command. See Bug 40186 and my comment there.