Creating a free PDFWriter Using Ghostscript
(Windows 98)

These are steps 6, 7 and 8 for creating a Ghostscript based PDFWriter on a Windows 98 system. These steps may work on Windows 95, but I have not tested them. The inital steps and instructions for Windows XP/2000 can be found here.


Synopsis: We create a redirected port RPT1: and associate a color PostScript printer to this new port.

We now create the virtual PDF printer. We need to run the Add Printer Wizard found in the Printers system folder inside My Computer:

Click on Next:

and select Local printer. Click on Next:

Select the HP printer HP Color Laserjet PS. Select this printer even if you do not own this printer. Certain other (but not all)  printer selection will work here. Important is that printer be a color PostScript printer. Some printers seem to give better font quality output then others. Click on Next:

and select the FILE: port. This selection is temporary and we will change it later. Click on Next: until you must name your printer:

Name the printer GS PDFWriter and you probably do not want it to be your default printer. Click on Next:

Make sure you do not print a test page. Click Finish to actually install the printer.


Synopsis: Create and configure the RPT1: port to use Ghostscript to create PDF files.

Find the newly created GS PDFWriter printer in the Printers system folder. Right-click on it and select Properties:

Select the Details tab:

and click on Add Port...:

and select Other and Redirected Port. Click OK and

accept the default port name of RPT1:. Click OK to create the port.

Select Port Settings... next.

and fill out the dialog box as shown above. Make sure the program path C:\gs\gs8.14\bin\gswin32c.exe points to the gswin32c.exe executable. Change version 8.14 in the path to match the version that was actually installed. Make sure the Arguments for this program are: as indicated above (listed here again for reference and easy cut-and-paste):

@C:\gs\pdfwrite.txt -sOutputFile="%1" -c .setpdfwrite -f -

Note the dash at the end of the line and the period at the beginning of ".setpdfwrite". The path name after the "@" points to the options file pdfwrite.txt we created above. The Output: needs to be Prompt for filename the Printer: is irrelevant and the Run: box should say Hidden. Click on OK when done.

Select Spool Settings... next.

and select Disable bi-directional support for this printer. Click on OK to continue.

Click on Apply to have the settings take effect.


  • Print a Test Page!

    Select the General tab from the GS PDFWriter Properties page:

  • and select Print Test Page on the General tab

    and, hopefully, a dialog box prompting you for the file name of the PDF file should open. Enter a file name with the .pdf file extension (the program does not automatically add it), select a location and print (i.e. create) the PDF file. View the newly create PDF file (in this case test.pdf) with a PDF viewer. Note: if the color on the PDF output file is wrong (i.e. the black is not black), remove all the Color Profiles in the Color Management tab of the GS PDFWriter printer.


    If everything work correctly your PDFWriter is now functional. You can create a PDF file by selecting the GS PDFWriter printer from any applications that can print a file. Please let me know if you succesully used these instructions to create a Ghostscript based PDFWriter. Email me at .


    This page is Copyright 2004 by Henrik Schmiediche.