WordPerfect for DOS Updated | Site Map | Search | Troubleshooting Guide | Feedback | Voluntary Contributions | FAQ

Export to Word or PDF using Microsoft Word or LibreOffice: Automated Methods


WP macros that use Word or LibreOffice to convert to .DOC or .PDFA WPDOS 5.1 macro that uses Word to convertA WPDOS 6.x macro that uses Word to convert | How to use the standalone script that uses WordA standalone script that uses Word to convert to RTF | A WPDOS 5.1 macro that uses LibreOffice to convertA WPDOS 6.x macro that uses LibreOffice to convert | How to use the standalone script that uses LibreOffice | Frequently-asked questionsHome page


This page is about automated methods for converting WordPerfect files into Word, RTF, or PDF format. If you have Microsoft Word or LibreOffice installed on your system, the methods described here will let you do the following:

See also the note on a separate page about WPDOS files that contain the euro symbol. See a separate page for information on importing Microsoft Word files into WordPerfect for DOS.

For other methods of creating PDF files directly from WPDOS, see a separate page about "printing" PDF files from WPDOS. The methods on that page will produce more accurate results than the methods described on the page you are reading now, because the methods on the other page "print" a PDF file directly from WordPerfect instead of using Microsoft Word or LibreOffice to convert the file first.

Absolutely unavoidable requirements: These are the requirements for the Microsoft Word-based macros and scripts and the LibreOffice-based macros scripts. Read these requirements carefully!

Microsoft Word: To use the standalone scripts that convert to Word or RTF format, and drop either a single file or a folder full of files on the script icon, you must have Word 2002, 2003, 2007, or 2010. To use the standalone Windows script, so that you can drop a single WPDOS file on to the script icon and convert it to Word format, you must have Word 2000, 2002, 2003, 2007, or 2010. (Word 2000 does not let you drop a whole folder full of files on to the script.) To use the WPDOS macros or the standalone script, you must have Word 2002, 2003, 2007, or 2010. (PDF export via script or macros requires Word 2007 SP2 or Word 2010.)

Important warning about Microsoft Word: The scripts and macros will work only if your system has Microsoft's import filters for WordPerfect correctly installed on your system. Try to open one of your WPDOS document in Microsoft Word, from Word's File/Open dialog; if the WPDOS document does not import into Word, then you must repair or reinstall your Microsoft Word installation and add the WordPerfect import filters. See a separate page on this site for instructions.

LibreOffice: The script and macros should work with LibreOffice versions 3.4 or later.

Before using this page, choose among these three options:

(a) If you currently use WordPerfect 5.1, and want to export your current documents (and possibly your older documents) to Word or PDF format, start with the sections below that describe WPDOS 5.1  macros and scripts that use Microsoft Word or WPDOS 5.1 macros and scripts that use LibreOffice to convert your files. If you want to convert multiple files in a single operation, study the section below that describes how to use a Windows script to convert one or more WPDOS documents to Word using Word's built-in converters

(b) If you currently use WordPerfect 6.x, and want to export your current documents (and possibly your older documents to Word or PDF format, start with the sections below that describe WPDOS 6.x macros and scripts that use Microsoft Word or WPDOS 6.x macros and scripts that use LibreOffice to convert your files. If you want to convert multiple files in a single operation, study the section below that describes how to use a Windows script to convert one or more WPDOS documents to Word using Word's built-in converters

(c) If you want to convert multiple WordPerfect files in a single operation, or if you no longer use WordPerfect for DOS, but have a large number of WPDOS files that you want to convert to Word or PDF format, study the section below that describes how to use a Windows script to convert one or more WPDOS documents to Word using Word's built-in converters.

Note: These scripts are frequently updated. If you find that the latest version of Microsoft Word or LibreOffice causes your script to stop working, please replace the script with the current version.

Note: If, when opening a document converted by one of these scripts, Word repeatedly displays the error message "Word cannot start the converter mswrd632.wpc" or "Cannot load Word for Windows 6.0 files", please consult this Microsoft information page. This problem is caused entirely by a security update installed by Microsoft starting in 2009; it is not caused by these scripts!


WordPerfect macros that use Word or LibreOffice to export files to .DOC or .PDF format

Warning: The WP macros described here do not work under 64-bit Windows or the WP-64 system. If you have 64-bit Windows, you must use the standalone script for Microsoft Word or the standalone script for LibreOffice.

This page describes WPDOS macros and Windows scripts that do the following:

Using a copy of Microsoft Word for Windows already installed on your computer:

Using a copy of the free application suite LibreOffice already installed on your computer:

Remember that your original WPDOS files are not changed in this process and remain on your disk with their original names!

Also remember:  These scripts are not designed to convert ordinary text files or any other files that were not created by WordPerfect 5.x, 6.x, or later; instead, they will display a message saying that the file you tried to convert is not a WordPerfect file. Don't assume that a file with a .WP filename extension is a WordPerfect file; it may be a text file. Remember that Microsoft Word, like WordPerfect, can open ordinary text files without any conversion whatever.

Further details are provided in the separate sections below.

If (1) you use a Macintosh computer, and (2) you have WordPerfect for DOS files or WordPerfect for Windows files that you want to open in Microsoft Word for the Mac, see the general page on WPDOS files imported into Word.


A WPDOS 5.1 macro and script that use Microsoft Word to convert WP files to Word or PDF format

Important warning: The WPDOS macro described in this section works only under 32-bit Windows! If you bought a computer with Windows 7 or Windows 8 already installed, you almost certainly have 64-bit Windows and must use the WP-64 method to run WordPerfect. If so, you must use the standalone script described below, not the WPDOS macro described in this section.

This system uses a WPDOS 5.1 macro to launch a Windows script that uses Microsoft Word to convert the WP document currently on screen into Word or PDF format. The macro requires the script, but the script can also be used as a standalone program. You must have Microsoft Word installed on your system.

In WPDOS, use Shift-F1, 6 - Location of Files to find your Keyboard/Macro Files directory.

Download the WP5WordConv.zip archive file. Extract the WORDCONV.WPM and place it in the Keyboard/Macro Files directory. Extract the WP2MSW.VBS file and place it in the root folder of the drive that contains WPDOS; if WPDOS is in C:\WP51, then place the file in C:\; if WPDOS is in in E:\WP51, then place the file in E:\.

In WPDOS, press Ctrl-F10, enter WORDCONV; at the prompt, choose Edit. In the Macro Editor window, scroll down to the lines that tell you to enter the drive letter. Change the line that reads:

{ASSIGN}WPDrive~~

so it reads (if your WP setup is on drive C:):

{ASSIGN}WPDrive~C~

Press F7 to close the macro.

Open a WordPerfect file in WPDOS. Press Alt-F10, WORDCONV, and follow the prompts. A Word-format file will be created with the same name as the current WPDOS file, but with a new .DOC extension added to the existing name.

You may use this macro to convert the current WPDOS document to PDF format, if you have Word 2007 SP2 or later. To change the behavior of the macro, again press Ctrl-F10, enter WORDCONV; at the prompt, choose Edit. In the Macro Editor window, scroll down to the line that reads:

{ASSIGN}MakePDF~No~

and change it so that it reads:

{ASSIGN}MakePDF~Yes~

Press F7 to close the macro editor.

For instructions on modifying the script so it corrects Word's choice of fonts in the exported files, open the WP2MSW.VBS script in Windows Notepad or a similar text editor, and modify the script as explained in the instructions included in the script itself.

For instructions on using the WP2MSW.VBS script as a separate Windows application (not launched from a WP macro), see a separate section elsewhere on this page.


A WPDOS 6.x macro and script that use Microsoft Word to convert WP files to Word or PDF format

Important warning: The WPDOS macro described in this section works only under 32-bit Windows! If you bought a computer with Windows 7 or Windows 8 already installed, you almost certainly have 64-bit Windows and must use the WP-64 method to run WordPerfect. If so, you must use the standalone script described below, not the WPDOS macro described in this section.

 This system uses a WPDOS 6.x macro to launch a Windows script that uses Microsoft Word to convert the WP document currently on screen into Word or PDF format. The macro requires the script, but the script can also be used as a standalone program. You must have Microsoft Word installed on your system.

In WPDOS, use Shift-F1, 5 - Location of Files, then Macro/Keyboard/Button Bar, and 1 - Personal Path, to find your personal macro directory.

Download the WP6WordConv.zip archive file. Extract the WORDCONV.WPM and the WP2MSW.VBS file and place both files in your personal macro directory.

To use the macro, open a WordPerfect file in WPDOS. Press Alt-F10, then enter WORDCONV and follow the prompts. A Word-format file will be created with the same name as the current WPDOS file, but with a new .DOC extension added to the existing name.

PDF, Long Filename, and other options. If you want to use the macro to create PDF output (Word 2007 SP2 or later required), or if you want the option to specify the name of the exported file, or if you want to use the option that uses the Document Descriptive Summary (Long Name) as the output filename, then press Ctrl-F10, enter WORDCONV, and choose Edit. This will open the macro file in the editing screen and you can set the options described in the macro itself.

For instructions on modifying the script so it corrects Word's choice of fonts in the exported files, open the WP2MSW.VBS script in Windows Notepad or a similar text editor, and modify the script as explained in the instructions included in the script itself.

For instructions on using the WP2MSW.VBS script as a separate Windows application (not launched from a WP macro), see a separate section elsewhere on this page.

Note: A revised version of the macro was posted on 18 February 2010; the only change is one that allows the macro to work correctly if the option "WP documents only" is switched on in WP's List Files Setup.


How to use the standalone script that uses Microsoft Word to convert to DOC or PDF

In order to use this script, you must have Microsoft Word installed on your system.

If you do not plan to use the WordPerfect 5.1 or 6.x macros that use this script, you may use the script alone to convert one or more WPDOS files into Word format. Start here if you no longer use WordPerfect for DOS, or if you use the WP-64 method to run WordPerfect under 64-bit Windows.This script will work only if Word is installed on your computer; see the notes above for details of the requirements. Don't ignore those notes! The script (without the accompanying macros) is available via this link to WP2MSW.VBS (right-click and choose Save Link Location or Download Link, or some similar item); this copy of the script is identical to the copy that is also supplied when you download the WPDOS macros that can use this script.

If you are using this script but you are not using the WPDOS macros, and have not yet installed the script: Copy or move the downloaded WP2MSW.VBS script file to a convenient location on your hard drive. Remember where it is. You may want to make a desktop shortcut of the script file, although this step is not essential. (See Help! What's a shortcut? and read the instructions for creating a shortcut for any Windows program or any other file.)

If you have already installed the script and macros: Before proceeding, you may want to make a desktop shortcut of the WP2MSW.VBS script file that you installed when you followed the instructions above, although this step is not essential. (See Help! What's a shortcut? and read the instructions for creating a shortcut for any Windows program or any other file.)

If you have a 64-bit version of Windows: Open the WP2MSW.VBS script file in Windows Notepad or some other text editor. Search for the line that reads DisableWPFonts (approx. line 202). Comment out this line by adding a straight apostrophe (') at the start of the line so that it reads: 'DisableWPFonts and save the file. If, after using the script to convert a file, you find that you cannot search for apostrophes and dashes in converted files, then you have the WPTypographicSymbols and other WP fonts installed in your system; remove them from your Windows Fonts folder (you almost certainly do not need them), and run the script again. If you absolutely need  to have the WPTypographicSymbols font on your system, send me feedback, asking for instructions on how to solve the problem with the script (but you should probably send a voluntary contribution first). You only have to think about this if you have 64-bit Windows.

You can open the script file in Windows Notepad or any similar text editor and edit its many options. These options let you suppress some of the prompts that the script ordinarily offers; whether to use .DOC or .PDF as the default output; and whether and how to use advanced font-substitution and formatting options.

You may run this script either by double-clicking on its icon, by dropping a file or folder on its icon, or by running it from the Start/Run... command line in Windows. Follow the specific instructions below:

Double-click the script's icon or shortcut. The script will prompt you to enter a filename, a directory name, or a wildcard specification (for example C:\myfiles\wp*.*). The script will then open Word (invisibly), import the matching files into Word, and export copies of the files in Word format. By default, the exported output files will have the same name as the input files, but with a .DOC extension; this .DOC extension will be added to any existing filename extension that the original file already had.

Drop a WP file or a folder icon on the script's icon or shortcut. In Windows Explorer, click on a WP file or on a folder that contains WP files, and drop the file or folder on the script's icon or shortcut. The script will export copies of the files to Word format. By default, the exported output files will have the same name as the input files, but with a .DOC extension.

Run the script from the command line. This is by far the most powerful option. The script can be run with up to four command-line parameters. These parameters let you specify the output filename (when the script converts a single file) or the output folder; they also let you specify DOC or PDF output, whether or not the script runs "silently" (without prompts), and whether it also processes subdirectories when you specify a folder of files for conversions. For details of these options, open the script in Windows Notepad or a similar text editor and study the instructions found in the script.

Remember that your original WPDOS files are not changed in this process and remain on your disk with their original names!


How to use the standalone script that uses Microsoft Word to convert to RTF or PDF

In order to use this script, you must have Microsoft Word installed on your system. If you want to use WP macros so that you can use this script from inside WPDOS, you may try to modify the macros described elsewhere on this page for converting from WP to DOC format. If you want me to create the macros for you, be prepared to make a very large contribution to this site.

The script to convert WP to RTF documents is available via this link to WP2RTF.VBS (right-click and choose Save Link Location or Download Link, or some similar item.) After downloading WP2RTF.VBS, copy or move the file to a convenient location on your hard drive. Remember where it is. You may want to make a desktop shortcut of the script file, although this step is not essential. (See Help! What's a shortcut? and read the instructions for creating a shortcut for any Windows program or any other file.)

You can open the script file in Windows Notepad or any similar text editor and edit its many options. These options let you suppress some of the prompts that the script ordinarily offers; including whether and how to use advanced font-substitution and formatting options.

You may run this script either by double-clicking on its icon, by dropping a file or folder on its icon, or by running it from the Start/Run... command line in Windows. Follow the specific instructions below:

Double-click the script's icon or shortcut. The script will prompt you to enter a filename, a directory name, or a wildcard specification (for example C:\myfiles\wp*.*). The script will then open Word (invisibly), import the matching files into Word, and export copies of the files in RTF format. By default, the exported output files will have the same name as the input files, but with a .RTF extension; this .RTF extension will be added to any existing filename extension that the original file already had.

Drop a WP file or a folder icon on the script's icon or shortcut. In Windows Explorer, click on a WP file or on a folder that contains WP files, and drop the file or folder on the script's icon or shortcut. The script will export copies of the files to Word format. By default, the exported output files will have the same name as the input files, but with a .RTF extension.

Run the script from the command line. This is by far the most powerful option. The script can be run with up to four command-line parameters. These parameters let you specify the output filename (when the script converts a single file) or the output folder; they also let you specify whether to export to .RTF or .PDF format, and whether or not the script runs "silently" (without prompts), and whether it also processes subdirectories when you specify a folder of files for conversions. For details of these options, open the script in Windows Notepad or a similar text editor and study the instructions found in the script.

Remember that your original WPDOS files are not changed in this process and remain on your disk with their original names!


A WPDOS 5.1 macro and script that use LibreOffice to convert WP files to Word or PDF format

Important warning: The WPDOS macro described in this section works only under 32-bit Windows! If you bought a computer with Windows 7 or Windows 8 already installed, you almost certainly have 64-bit Windows and must use the WP-64 method to run WordPerfect. If so, you must use the standalone script described below, not the WPDOS macro described in this section.

This system uses a WPDOS 5.1 macro to launch a Windows script that uses LibreOffice to convert the WP document currently on screen into Word or PDF format. The macro requires the script, but the script can also be used as a standalone program. You must have a recent version of LibreOffice installed on your system. (The script was updated 9 December 2012 to work correctly with recent versions of LibreOffice.)

In WPDOS, use Shift-F1, 6 - Location of Files to find your Keyboard/Macro Files directory.

Download the WP5LibrConv.zip archive file. Extract the LIBRCONV.WPM and place it in the Keyboard/Macro Files directory. Extract the WP-LO.VBS file and place it in the root folder of the drive that contains WPDOS; if WPDOS is in C:\WP51, then place the file in C:\; if WPDOS is in in E:\WP51, then place the file in E:\.

In WPDOS, press Ctrl-F10, enter LIBRCONV; at the prompt, choose Edit. In the Macro Editor window, scroll down to the lines that tell you to enter the drive letter. Change the line that reads:

{ASSIGN}WPDrive~~

so it reads (if your WP setup is on drive C:):

{ASSIGN}WPDrive~C~

Press F7 to close the macro.

Open a WordPerfect file in WPDOS. Press Alt-F10, LIBRCONV, and follow the prompts. A Word-format file will be created with the same name as the current WPDOS file, but with a new .DOC extension added to the existing name.

You may use this macro to convert the current WPDOS document to PDF format, if you have Word 2007 SP2 or later. To change the behavior of the macro, again press Ctrl-F10, enter LIBRCONV; at the prompt, choose Edit. In the Macro Editor window, scroll down to the line that reads:

{ASSIGN}MakePDF~No~

and change it so that it reads:

{ASSIGN}MakePDF~Yes~

Press F7 to close the macro editor.

For instructions on using the WP-LO.VBS script as a separate Windows application (not launched from a WP macro), see a separate section elsewhere on this page.


A WPDOS 6.x macro and script that use LibreOffice to convert WP files to Word or PDF format

Important warning: The WPDOS macro described in this section works only under 32-bit Windows! If you bought a computer with Windows 7 or Windows 8 already installed, you almost certainly have 64-bit Windows and must use the WP-64 method to run WordPerfect. If so, you must use the standalone script described below, not the WPDOS macro described in this section.

This system uses a WPDOS 6.x macro to launch a Windows script that uses LibreOffice to convert the WP document currently on screen into Word or PDF format. The macro requires the script, but the script can also be used as a standalone program. You must have a recent version of LibreOffice installed on your system. (The script was updated 9 December 2012 to work correctly with recent versions of LibreOffice.)

In WPDOS, use Shift-F1, 5 - Location of Files, then Macro/Keyboard/Button Bar, and 1 - Personal Path, to find your personal macro directory.

Download the WP6LibrConv.zip archive file. Extract the LIBRCONV.WPM and the WP-LO.VBS file and place both files in your personal macro directory.

To use the macro, open a WordPerfect file in WPDOS. Press Alt-F10, then enter LIBRCONV and follow the prompts. A Word-format file will be created with the same name as the current WPDOS file, but with a new .DOC extension added to the existing name.

PDF, Long Filename, and other options. If you want to use the macro to create PDF output (Word 2007 SP2 or later required), or if you want the option to specify the name of the exported file, or if you want to use the option that uses the Document Descriptive Summary (Long Name) as the output filename, then press Ctrl-F10, enter LIBRCONV, and choose Edit. This will open the macro file in the editing screen and you can set the options described in the macro itself.

For instructions on using the WP-LO.VBS script as a separate Windows application (not launched from a WP macro), see a separate section elsewhere on this page.

Note: A revised version of the macro was posted on 18 February 2010; the only change is one that allows the macro to work correctly if the option "WP documents only" is switched on in WP's List Files Setup.


How to use the standalone script that uses LibreOffice to convert to DOC or PDF

To use this method, you must have a recent version of LibreOffice installed on your system. The script was revised on 9 December 2012 to work correctly with recent versions of LibreOffice.

Note: Before proceeding, you may want to make a desktop shortcut of the WP-LO.VBS script file that you installed when you followed the instructions above, although this step is not essential. (See Help! What's a shortcut? and read the instructions for creating a shortcut for any Windows program or any other file.)

The script (without the accompanying macros) is available via this link; it is identical to the copy that comes with the macros described above.

You can open the script file in Windows Notepad or any similar text editor and edit its options. These include options to default to PDF instead of DOC output, and to suppress some of the prompts that the program normally offers.

You may run this script either by by dropping a file on its icon or by running it from the Start/Run... command line.

Drop a WP file on the script's icon or shortcut. In Windows Explorer, drag a WP file and drop it on the script's icon or shortcut. The script will export a copy of the file to Word format. By default, the exported output file will have the same name as the input file, but with a .DOC extension. (But this can be changed by changing in an option in the script itself.)

Run the script from the command line. This is the more flexible option. The script can be run with one or two command-line parameters. The first parameter specifies the input WP file. The optional second parameter specifies the output filename; you can specify a filename with the extension .PDF or .DOC and the script will create a file with the desired format. Alternatively, you can use simply PDF or DOC as the second parameter, and the script will export a file with the same name as the input file but with a .PDF or .DOC extension added.

For details of these options, open the script in Windows Notepad or a similar text editor and study the instructions found in the script.

Remember that your original WPDOS files are not changed in this process and remain on your disk with their original names!


Frequently-asked questions

Q. I was stupid enough to download and use your macros and scripts, and the results aren't as good as I wanted. You have destroyed my files! The fonts are all wrong! The formatting is wrong! Everything is a total disaster! Word uses fonts with weird names like Shruti or Uighur instead of the fonts I carefully chose in WordPerfect! I lost all the work I did over the last fifteen years! This is all your fault!
   A. Breathe deeply, make an effort to stay calm, and read the following sentences very slowly until you are absolutely sure that you understand them - and I mean really understand them. First, your original WordPerfect files have not been changed at all. They are still on your disk, exactly where they have always been, with exactly the same content and format that they have always had, and exactly the same names. You are complaining about the mistakes that Microsoft Word, and only Microsoft Word, made when creating copies of your original files in a different format. Remember, it was Microsoft Word and only Microsoft Word that decided which fonts to use in the exported files that it created! My script includes features that let you fix the problems caused by Word, by specifying in the script the fonts that Word should use when converting your file. But you will need to calm yourself and read the instructions in the script file before you can use these features. Also, please complain to Microsoft about the bugs and limitations of its file converters. It does you no good to complain to me.

Q. You said I could use your macro to convert WP files to PDF format using Microsoft Word, but when I do, a message pops in Windows saying that I can't do that! I want my money back!
   A. First, I don't think you paid me any money, so I can't pay it back. Next, did you read the clear and carefully spelled-out instructions that explain that you must have Word 2007 SP2 or later if you want to use these methods to create PDF files? This page (the page you are reading now) explains that crucial point many, many times. You presumably have Word 2000, Word 2002, Word 2003, or a copy of Word 2007 that you have not updated to SP2 - although, if you have Word 2007, Windows can update Word 2007 automatically for you so that you can create PDF files.


Home Page  Site Map  Last modified 9 December 2012