We help IT Professionals succeed at work.

DOS to PDF file

syinfra
syinfra asked
on
Hi,
I have an DOS accounting program which directly prints to printer connected to LPT1.
 I also wish to print to a PDF file directly from this DOS Accounting program.
Kindly suggest any freeware kind of a DOS to USB/PDF utility.

Regards
Syinfra
Comment
Watch Question

CERTIFIED EXPERT
Commented:
There aren't any that I know of, but there is a long workaround that will do what you want. Basically, yo're going to install a free virtual PDF in Windows, then reroute LPT2 to print to that printer, and then use your DOS program (which I assume just runs under Windows in the command console) to print to LPT2.

Here are the steps:
1. Download and install CutePDF Writer (http://www.cutepdf.com/products/cutepdf/writer.asp)
2. Go to the Printers menu in the Control Panel, open the printer properties, and make that printer shared. Make sure that you make the shared name something easy (like PDFPrinter)
3. Open the command prompt, and type in the following command: "net use lpt2 \\127.0.0.1\pdfprint /persistent:yes"

Now, anything printed to LPT2 will print to the CutePDF writer, which will let you save it as a PDF file.
you can similarly port lpt1 to go to a file rather than the printer, it has been a while but i am sure that there are some capture programs still out there in shareware land.
once you have it in a file you can do anything
syinfraSenior Deputy Manager

Author

Commented:
Hi,
Any other freeware software like DOS2USB which also has print in PDF facility.

Regards
syinfra
CERTIFIED EXPERT
Commented:
No, because you're not printing to USB, and you're not printing to just a file -- you want to print to PDF. There is nothing that does this directly, so routing and LPT port to a network-shared PDF printer is the only way it's going to work.
syinfraSenior Deputy Manager

Author

Commented:
Hi,
I have tried with Cute PDF but it do not prompts for the name of the file like it normaly ask. I have tested with a doc file which successfuly prints in pdf but this dosen't work.

Regards
Syinfra
CERTIFIED EXPERT
Commented:
What OS are you using? And please check your CutePDF printer queue -- are there print jobs stuck in it?
syinfraSenior Deputy Manager

Author

Commented:
Hi,
OS is WIN XP with SP3,

The Cute Pdf shows in the queue 'printing' but there are no popup for saving the file or if it has defualt created the pdf file where to search for.

Regards
Syinfra
CERTIFIED EXPERT
Commented:
Sorry about that --  it sounds like CutePDF can't open its "save as" window when the print request  is generated from the DOS window. If that's the case, then you probably won't be able to use any of the free virtual PDF printers. The only other thing you can try is PrintFil (http://www.printfil.com/english.htm) -- it specifically sayd that it will let you router LPT port requests to any Windows printer, including the PDF ones. However, it's a pair program (but you can try it for free and make sure that it works).
syinfraSenior Deputy Manager

Author

Commented:
Hi,

There is Printer Connected on LPT1 and and i tried routing on LPT2, but there is nothing in the cute PDf queue. My DOS accounting is only configured directly for LPT1. I tried with Printfil but no option for Save As.
Kindly suggest any other software which could fulfil my requirement, may be any cheapest utility software that i cab buy.

Regards
Syinfra
CERTIFIED EXPERT
Commented:
OK, if your software can only print to LPT1, then you first need to disconnect the previous routing that had set you set up. You need to run the following command in the command prompt: "net use lpt1 /delete". Once that's done, you should be able to follow the instructions in the PrintFil manual to capture the LPT1 data from your DOS program and forward it to CutePDF (http://www.printfil.com/manualen/c7.htm).

Explore More ContentExplore courses, solutions, and other research materials related to this topic.