How to convert html to doc/docx with OpenOffice or LibreOffice? Announcing the arrival of...

How to retrograde a note sequence in Finale?

Passing functions in C++

What kind of display is this?

Losing the Initialization Vector in Cipher Block Chaining

How does modal jazz use chord progressions?

Keep going mode for require-package

How do I automatically answer y in bash script?

How is simplicity better than precision and clarity in prose?

Stop battery usage [Ubuntu 18]

How to rotate it perfectly?

What to do with post with dry rot?

What's the difference between (size_t)-1 and ~0?

Using "nakedly" instead of "with nothing on"

Can a zero nonce be safely used with AES-GCM if the key is random and never used again?

How can players take actions together that are impossible otherwise?

How should I respond to a player wanting to catch a sword between their hands?

Replacing HDD with SSD; what about non-APFS/APFS?

Does a C shift expression have unsigned type? Why would Splint warn about a right-shift?

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

Estimated State payment too big --> money back; + 2018 Tax Reform

Is there folklore associating late breastfeeding with low intelligence and/or gullibility?

Cold is to Refrigerator as warm is to?

Can smartphones with the same camera sensor have different image quality?

How are presidential pardons supposed to be used?



How to convert html to doc/docx with OpenOffice or LibreOffice?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to convert .PDF and .doc/.docx files to .HTML files?How are the 2010 OpenDocument Text (.odt) from OpenOffice and the 2012 one from LibreOffice different?Can MS Word read OpenOffice formats?Effect of HOME on libreoffice to convert to pdf as non-root userConvert file to PDF using LibreOffice under user apache (i.e. when using PHP)Export first few pages of Doc to PDF using LibreOfficeConvert PPTX to HTML while preserving textHow do I batch convert .odt files to .docx files?Where is the <code> style in LibreOffice?Opening a .doc file, which is actually an HTML file, as a .doc file





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I am trying to convert a html to doc or docx. I used some of the available php classes but the results are not good. I wonder if I can convert a html file to doc using some office software like LibreOffice or OpenOffice?



LibreOffice (AbiWord) "converts" html to a doc file but without formatting. I mean I see the html sourcecode when I open the doc file.



abiword --plugin AbiCommand
convert /home/qqq/test/test.htm /home/qqq/test/test.doc doc


And with openOffice, nothing happens..:



soffice --headless --convert-to doc:DOC  /home/qqq/test/test.htm


I have to press ctrl+c to get back to the console.



Any Ideas how to convert html to doc? I can open the html in the desktop version of these two apps and save as doc but it seems not to work in the console version.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • IIRC, libre/openoffice won't work unless there's only one instance of it open. That might be your problem with the second command.

    – evilsoup
    Sep 29 '14 at 11:38











  • pandoc does this quite well, but you specifically limited your question to OO / LO so I'm not putting this an an answer...

    – Jan
    Sep 29 '14 at 15:06











  • @Jan - installed and tested. It does not work. It renames the html to docx but without actually converting it. :( I am open for any solution.

    – MilMike
    Sep 29 '14 at 15:48











  • Just re-checked, works as supposed to: pandoc -s -r html page.html -o output.docx... It's a very complex program and you have to get used tto it though.

    – Jan
    Sep 29 '14 at 15:53











  • if you open the output.docx in a text editor you will see that it is just the html sourcecode. And the sourcecode is also broken by pandoc. The html in the docx is not the same as my source html - the result looks terrible.

    – MilMike
    Sep 29 '14 at 18:02


















1















I am trying to convert a html to doc or docx. I used some of the available php classes but the results are not good. I wonder if I can convert a html file to doc using some office software like LibreOffice or OpenOffice?



LibreOffice (AbiWord) "converts" html to a doc file but without formatting. I mean I see the html sourcecode when I open the doc file.



abiword --plugin AbiCommand
convert /home/qqq/test/test.htm /home/qqq/test/test.doc doc


And with openOffice, nothing happens..:



soffice --headless --convert-to doc:DOC  /home/qqq/test/test.htm


I have to press ctrl+c to get back to the console.



Any Ideas how to convert html to doc? I can open the html in the desktop version of these two apps and save as doc but it seems not to work in the console version.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • IIRC, libre/openoffice won't work unless there's only one instance of it open. That might be your problem with the second command.

    – evilsoup
    Sep 29 '14 at 11:38











  • pandoc does this quite well, but you specifically limited your question to OO / LO so I'm not putting this an an answer...

    – Jan
    Sep 29 '14 at 15:06











  • @Jan - installed and tested. It does not work. It renames the html to docx but without actually converting it. :( I am open for any solution.

    – MilMike
    Sep 29 '14 at 15:48











  • Just re-checked, works as supposed to: pandoc -s -r html page.html -o output.docx... It's a very complex program and you have to get used tto it though.

    – Jan
    Sep 29 '14 at 15:53











  • if you open the output.docx in a text editor you will see that it is just the html sourcecode. And the sourcecode is also broken by pandoc. The html in the docx is not the same as my source html - the result looks terrible.

    – MilMike
    Sep 29 '14 at 18:02














1












1








1








I am trying to convert a html to doc or docx. I used some of the available php classes but the results are not good. I wonder if I can convert a html file to doc using some office software like LibreOffice or OpenOffice?



LibreOffice (AbiWord) "converts" html to a doc file but without formatting. I mean I see the html sourcecode when I open the doc file.



abiword --plugin AbiCommand
convert /home/qqq/test/test.htm /home/qqq/test/test.doc doc


And with openOffice, nothing happens..:



soffice --headless --convert-to doc:DOC  /home/qqq/test/test.htm


I have to press ctrl+c to get back to the console.



Any Ideas how to convert html to doc? I can open the html in the desktop version of these two apps and save as doc but it seems not to work in the console version.










share|improve this question














I am trying to convert a html to doc or docx. I used some of the available php classes but the results are not good. I wonder if I can convert a html file to doc using some office software like LibreOffice or OpenOffice?



LibreOffice (AbiWord) "converts" html to a doc file but without formatting. I mean I see the html sourcecode when I open the doc file.



abiword --plugin AbiCommand
convert /home/qqq/test/test.htm /home/qqq/test/test.doc doc


And with openOffice, nothing happens..:



soffice --headless --convert-to doc:DOC  /home/qqq/test/test.htm


I have to press ctrl+c to get back to the console.



Any Ideas how to convert html to doc? I can open the html in the desktop version of these two apps and save as doc but it seems not to work in the console version.







linux openoffice libreoffice






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 29 '14 at 8:45









MilMikeMilMike

16029




16029





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • IIRC, libre/openoffice won't work unless there's only one instance of it open. That might be your problem with the second command.

    – evilsoup
    Sep 29 '14 at 11:38











  • pandoc does this quite well, but you specifically limited your question to OO / LO so I'm not putting this an an answer...

    – Jan
    Sep 29 '14 at 15:06











  • @Jan - installed and tested. It does not work. It renames the html to docx but without actually converting it. :( I am open for any solution.

    – MilMike
    Sep 29 '14 at 15:48











  • Just re-checked, works as supposed to: pandoc -s -r html page.html -o output.docx... It's a very complex program and you have to get used tto it though.

    – Jan
    Sep 29 '14 at 15:53











  • if you open the output.docx in a text editor you will see that it is just the html sourcecode. And the sourcecode is also broken by pandoc. The html in the docx is not the same as my source html - the result looks terrible.

    – MilMike
    Sep 29 '14 at 18:02



















  • IIRC, libre/openoffice won't work unless there's only one instance of it open. That might be your problem with the second command.

    – evilsoup
    Sep 29 '14 at 11:38











  • pandoc does this quite well, but you specifically limited your question to OO / LO so I'm not putting this an an answer...

    – Jan
    Sep 29 '14 at 15:06











  • @Jan - installed and tested. It does not work. It renames the html to docx but without actually converting it. :( I am open for any solution.

    – MilMike
    Sep 29 '14 at 15:48











  • Just re-checked, works as supposed to: pandoc -s -r html page.html -o output.docx... It's a very complex program and you have to get used tto it though.

    – Jan
    Sep 29 '14 at 15:53











  • if you open the output.docx in a text editor you will see that it is just the html sourcecode. And the sourcecode is also broken by pandoc. The html in the docx is not the same as my source html - the result looks terrible.

    – MilMike
    Sep 29 '14 at 18:02

















IIRC, libre/openoffice won't work unless there's only one instance of it open. That might be your problem with the second command.

– evilsoup
Sep 29 '14 at 11:38





IIRC, libre/openoffice won't work unless there's only one instance of it open. That might be your problem with the second command.

– evilsoup
Sep 29 '14 at 11:38













pandoc does this quite well, but you specifically limited your question to OO / LO so I'm not putting this an an answer...

– Jan
Sep 29 '14 at 15:06





pandoc does this quite well, but you specifically limited your question to OO / LO so I'm not putting this an an answer...

– Jan
Sep 29 '14 at 15:06













@Jan - installed and tested. It does not work. It renames the html to docx but without actually converting it. :( I am open for any solution.

– MilMike
Sep 29 '14 at 15:48





@Jan - installed and tested. It does not work. It renames the html to docx but without actually converting it. :( I am open for any solution.

– MilMike
Sep 29 '14 at 15:48













Just re-checked, works as supposed to: pandoc -s -r html page.html -o output.docx... It's a very complex program and you have to get used tto it though.

– Jan
Sep 29 '14 at 15:53





Just re-checked, works as supposed to: pandoc -s -r html page.html -o output.docx... It's a very complex program and you have to get used tto it though.

– Jan
Sep 29 '14 at 15:53













if you open the output.docx in a text editor you will see that it is just the html sourcecode. And the sourcecode is also broken by pandoc. The html in the docx is not the same as my source html - the result looks terrible.

– MilMike
Sep 29 '14 at 18:02





if you open the output.docx in a text editor you will see that it is just the html sourcecode. And the sourcecode is also broken by pandoc. The html in the docx is not the same as my source html - the result looks terrible.

– MilMike
Sep 29 '14 at 18:02










1 Answer
1






active

oldest

votes


















0














This may be a dumb solution, or idiocratic to a few particulars of the HTML files I'm using, but try renaming the file with a .docx extension. I've been able to open them as "word" files and subsequently save them as word files.






share|improve this answer
























  • Well, if it works it works.

    – Insane
    Oct 29 '15 at 0:45












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f818127%2fhow-to-convert-html-to-doc-docx-with-openoffice-or-libreoffice%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














This may be a dumb solution, or idiocratic to a few particulars of the HTML files I'm using, but try renaming the file with a .docx extension. I've been able to open them as "word" files and subsequently save them as word files.






share|improve this answer
























  • Well, if it works it works.

    – Insane
    Oct 29 '15 at 0:45
















0














This may be a dumb solution, or idiocratic to a few particulars of the HTML files I'm using, but try renaming the file with a .docx extension. I've been able to open them as "word" files and subsequently save them as word files.






share|improve this answer
























  • Well, if it works it works.

    – Insane
    Oct 29 '15 at 0:45














0












0








0







This may be a dumb solution, or idiocratic to a few particulars of the HTML files I'm using, but try renaming the file with a .docx extension. I've been able to open them as "word" files and subsequently save them as word files.






share|improve this answer













This may be a dumb solution, or idiocratic to a few particulars of the HTML files I'm using, but try renaming the file with a .docx extension. I've been able to open them as "word" files and subsequently save them as word files.







share|improve this answer












share|improve this answer



share|improve this answer










answered Oct 28 '15 at 23:34









AdamOAdamO

1012




1012













  • Well, if it works it works.

    – Insane
    Oct 29 '15 at 0:45



















  • Well, if it works it works.

    – Insane
    Oct 29 '15 at 0:45

















Well, if it works it works.

– Insane
Oct 29 '15 at 0:45





Well, if it works it works.

– Insane
Oct 29 '15 at 0:45


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f818127%2fhow-to-convert-html-to-doc-docx-with-openoffice-or-libreoffice%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...