CRM Hosting


Add to Technorati Favorites

Create PDF file in Windows

Portable Document Format is a file format created by Adobe Systems in 1993. Now PDF format became universally accepted format for document exchange.

While for reading PDFs Adobe’s Reader is the standard (also free) application on Windows systems, when it you want to create PDFs you have to choose between the expensive Adobe Acrobat and the few applications full of built in advertising.


But with a little work you can produce PDFs using only 2 free applications: GhostScript and RedMon.

Ghostscript is the name of a set of software that provides:

* An interpreter for the PostScript (TM) language, with the ability to convert PostScript language files to many raster formats, view them on displays, and print them on printers that don’t have PostScript language capability built in;
* An interpreter for Portable Document Format (PDF) files, with the same abilities;
* The ability to convert PostScript language files to PDF (with some limitations) and vice versa; and
* A set of C procedures (the Ghostscript library) that implement the graphics capabilities that appear as primitive operations in the PostScript language.
(From official homepage)

The RedMon port monitor redirects a special printer port to a program. RedMon is commonly used with Ghostscript and a non-PostScript printer to emulate a PostScript printer.
RedMon can be used with any program that accepts data on standard input.
Using RedMon you create a redirected printer port. If you connect a Windows printer driver to the redirected printer port, all data sent to the redirected port will be forwarded by RedMon to the standard input of a program. The output of this program can be sent to different printer port, or the program can generate whatever output it desires.
(From official homepage)

First you have to install Ghostscript and RedMon.
The default options for Ghostscript ore OK, you will only have to remember where it installs (default C:\Program Files\gs\GSxxx\). RedMon has no options at the install time, so there’s no worry about it.

Once you have the 2 programs installed, you have to add a printer.
Choose “Local printer attached to this computer”, uncheck “automatically detect and …” option. Click Next and you will move to next screen. On this screen choose “Create a new port” option, select “Redirected Port” from drop-down menu. A pop-up windows will appear asking you to give name for this port. You can leave default RPT1: and click OK:
pdf1.png

Next you will be asked what printer to install. I usually install a HP Color LaserJet 4550. Next, name the printer PDF and Finish.

Now you have to modify some setting for the printer (well, for the port you created, to be more precise).
pdf2.png
Right-click the PDF printer, choose Properties, select the Ports tab, select the RPT1: port and click Configure Port:

pdf3.png
In the “Redirect this port to the program” field write: C:\Windows\pdf.bat
Don’t worry about the pdf.bat file, we will create it a little bit later.
In the “Arguments for this program are” field write: “%1″
From the “Output” list select: Prompt for filename

Now everything is configured, all you have to do is to create the pdf.bat file.
Open Notepad and paste this lines:

PATH=%PATH%;c:\program files\gs\gs8.xx\bin
gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%1 -f -

Change the gs8.xx with the version you installed.
Save the file as c:\windows\pdf.bat (if Notepad ads a .txt extension you can always rename the file from the command prompt)

Now you have a Printer that prints PDF files.
You can use it from any application that supports printing.


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button
Comments are DoFollow, so you may consider writing a small note :)

4 Responses to “Create PDF file in Windows”

  1. I just have photoshop cs on my PC,can you tell me how to make PDF file using photoshop.

  2. [...] – PDF software: If you are creating downloadable ebooks and other kinds of content that you want to prevent people from copying, the simple thing to do is to make it into a PDF file. With many PDF files, you can prevent your readers from copying from, changing, or even printing your stuff. Free PDF software that really work include PrimoPDF and CutePDF Writer. These are essentials for the network marketer on a budget looking for MLM free software. Or consider: Create PDF files in Windows. [...]

  3. Hi I like your post “PDF file in Windows | PC Tips & Tricks” so well that I like to ask you whether I should translate into German and linking back. Greetings Engel

  4. Feel free to do it if you want to :)

Leave a Reply



BRDTracker