14

WordPress2Doc – How to convert WordPress articles into Word and PDF documents

WordPress2Doc is a small program I developed, that enables you to convert your WordPress articles into Word (docx) documents. In addition to the Word format (.docx) the PDF format (.pdf) is available as a target format. For the conversion, the program makes use of the WordPress export XML file and can convert the items inside the export file in one or both of the aforementioned formats.

Tip: The download link for WordPress2Doc is at the end of this article! Who needs no further information, can now confidently scroll to the bottom of the article.

How to convert WordPress articles into pdf and docx files

To convert your WordPress articles into .docx or .pdf format, the relevant articles must be exported from WordPress at first. This can be done at WordPress’ backend. Therefore open the administration page of your blog and navigate to the “Tools-> Export” menu in the WordPress backend.

Wordpress Artikel exportieren  Wordpress Artikel exportieren

In the export menu arrived, the “Posts” option must be selected. Then, depending on the desired, more restrictions can be set. By clicking on the “Download Export File” button relevant items are exported into a xml file.

At this point WordPress2Doc comes into play. After the start of WordPress2Doc the downloaded export file must be opened with a click on the tile “Load WordPress export.xml”.

Wordpress Artikel exportieren

Now the “Choose items” tab opens itself. On this tab you can once again choose if all or just a selection of your articles should be converted. Therefore you can use the “select all” and “deselect all” buttons or check the articles by hand in the article list.

If you are not sure about the content of an article and therefore do not know if you would like to convert it, so you can open a preview with a double click on the item in the article list. The preview is rendered either as HTML or as source code on the right side of the WordPress2Doc interface.

Wordpress2Doc Artikel auswählen  Wordpress2Doc  Artikel Vorschau

If you have choosen your desired articles, you have to switch to the “Convert” tab. In this tab, the export format can be defined. The selected WordPress items can be converted in the .pdf format or just the .docx format or as well as in both formats at the same time.

Wordpress2Doc Exporteinstellungen  Wordpress2Doc Konvertierung

Video Tutorial

Download WordPress2Doc

The download of WordPress2Doc is (of course) free! Anyone who wants to use only the program, should decide to click on the top download link. The others, who wants to know how WordPress2Doc works or would like to improve it, should opt for the second link (GitHub) where you’ll get the WordPress2Doc sourcecode.

Download WordPress2Doc (Version 1.1.0.0)

WordPress2Doc source code (GitHub)

I wan’t you!

I need you – help us to do better. Basically there are 3 ways to help:

  1. You comment on this article and give me your criticism, suggestions for improvement and/or new ideas.
  2. You help to translate WordPress2Doc. Since now there are only translations into “German” and “English” available. If you speak another language, join us and help translating! A list of phrases to be translated can be found here: WordPress2Doc translation list
  3. You grab/fork the source code (in the download section of this article) of WordPress2Doc and lay hands on the code itself!

No matter what you choose – your help is always welcome!

About the author: This article, as well as 138 more on en.code-bude.net, were published by Raffi. – Since 2011 I've been blogging here and on code-bude.net, the german counterpart, about programming and my software, write tutorials and try to share my knowledge, as well as possible, with my readers. Furthermore I write at derwirtschaftsinformatiker.de on subjects of my studies.
  //    •  • Facebook  • Twitter


  1. Jay Schwartz says:

    Thank you very much for sharing this most useful application! It’s very useful that the program exports to both DOCX files and PDF files, especially since Open Office cannot natively import the DOCX files (at least on my version). Just a suggestion: further support Open Source files structures – since not everyone can afford Microsoft products. Even Microsoft’s Open XML Converter could not convert the files to a word 97 file structure.

  2. Hello there, nice try with the app. The contents are alright in Greek but I also have a situation with Greek file names, but it doesn’t concern me that. Could you please make these?:

    1) All articles in one file (I have more than 500 articles so your app makes more than 500 files).

    2) Could you include the post titles inside the file, in the contents? For exaple:

    article 1 title

    line
    line
    .
    .
    .
    line

    article 2 title

    line
    line

    line

    I hope you understand what do I mean.

  3. Achilles says:

    Hi,
    This is a really nice app! However I’m having trouble with Greek post titles. The files created have no filename before the .docx.
    I guess this doesn’t concern most people, but I thought I’d let you know. There may also be a problem with all other not latin languages.

  4. Hi,

    If you need help with the French translation, let me know. I will install it and report bugs. I’ve been looking for a solution like that for a while now as I get more and more requests to translate WordPress style, and if a customer can export easily, all the better.

  5. Jason says:

    Thank you so much for this wonderful article. It worked perfectly and i was able to export all the post into a word document.

  6. Sally Ladd says:

    Where did your video go??

  7. Zero Dean says:

    Hi! Thanks so much for putting together this tool.

    I just ran it on one of my sites and was a bit surprised by the results. It’s useful, definitely. But I want to share some feedback that may help you further develop this tool:

    1. There is no indication anywhere that this outputs individual files for every post. I was under the impression that this would output a single file of each version of the selected output (docx and/or pdf) — so I chose to save to my desktop.

    This tool saved over 150 files to my desktop! Oops.

    So it would be nice if it was 1. more clear about this and 2. if there was a “save as single file” option.

    2. All of the docx files I attempt to open in the open-source LibreOffice Writer program are blank. So there may be an issue there.

    3. The PDF files open ok, but I was surprised to note that the only text included in the file(s) are the BODY text. There is no subject/title information in the PDF file (although the PDFs are named the subject/title of the original posts).

    So it would be helpful if you included the subject/title text in the file itself, as well.

    The posts I used to text were from the ADVICE sections here: http://zerodean.photography/

    I hope this feedback helps. Thanks again!

  8. Brandon M. Sergent says:

    You should make it so that I can copy and paste error messages.

    I didn’t expect this to work. :/

  9. Mohammed says:

    Thanks very much for a great utility app. I’ve found it very useful.

    Cheers

  10. […] Download WordPress2Doc […]

  11. D says:

    Hallo Raffi,

    do you need the tranlation to portuguese and spanish?

    Great tool btw, kudos!

    • Raffi says:

      Hi “D”,

      thanks for your offer. Yes, I would be really happy, if you would help me with the translations. For easier translation progress you can use the document, linked in the article. ( http://bit.ly/1dBe1xf )

      Greets and thanks,
      Raffi