Discussion:
Convert .PRN file to .TXT
(too old to reply)
Abdul Aziz
2022-12-29 09:27:12 UTC
Permalink
Sometimes the only way I can get info from windows that I can manipulate for my
own purposes is in the form of a .PRN file. These files are created by
printing from a program to a file using a PCL printer driver. An example is in
W95 Device Manager system summary. If you elect to print this to a file, it
creates a .PRN file. MY QUESTION: does anybody know of a program that will
convert this format into an unformatted text file i.e. a .TXT file.
Have you tried installing an "ASCII/Text Only" printer on Windows?
Leonardo
".signature": bad command or file name
Hi everyone,
I need to achieve the same using Java or Kotlin programming language, is it possible in 2022? :)
JJ
2022-12-29 14:58:32 UTC
Permalink
Post by Abdul Aziz
Sometimes the only way I can get info from windows that I can manipulate for my
own purposes is in the form of a .PRN file. These files are created by
printing from a program to a file using a PCL printer driver. An example is in
W95 Device Manager system summary. If you elect to print this to a file, it
creates a .PRN file. MY QUESTION: does anybody know of a program that will
convert this format into an unformatted text file i.e. a .TXT file.
Have you tried installing an "ASCII/Text Only" printer on Windows?
Leonardo
".signature": bad command or file name
Hi everyone,
I need to achieve the same using Java or Kotlin programming language, is it possible in 2022? :)
For DOS, only Taurus JVM is usable, and only some Java standard packages are
available.
Tavis Ormandy
2022-12-29 15:13:08 UTC
Permalink
Post by Abdul Aziz
Hi everyone,
I need to achieve the same using Java or Kotlin programming language, is it possible in 2022? :)
You're replying to a thread from 30 years ago, on a group for the
discussion of msdos programming. I think it would be very surprising to
find java programmers here. Try a java group, like comp.lang.java.

Also, start a new thread, don't reply to long dead ones!

I don't know Java, but I would use ghostscript or libgs with the
txtwrite device.

Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger ***@sdf.org
_\_V _( ) _( ) @taviso
R.Wieser
2022-12-29 16:03:54 UTC
Permalink
Abdul,
Post by Abdul Aziz
Hi everyone,
I need to achieve the same using
Maybe you could do what Leonardo suggested ?
Post by Abdul Aziz
Have you tried installing an "ASCII/Text Only" printer on Windows?
Regards,
Rudy Wieser
Johann Klammer
2023-01-01 17:26:57 UTC
Permalink
Post by Abdul Aziz
Sometimes the only way I can get info from windows that I can manipulate for my
own purposes is in the form of a .PRN file. These files are created by
printing from a program to a file using a PCL printer driver. An example is in
W95 Device Manager system summary. If you elect to print this to a file, it
creates a .PRN file. MY QUESTION: does anybody know of a program that will
convert this format into an unformatted text file i.e. a .TXT file.
Have you tried installing an "ASCII/Text Only" printer on Windows?
Leonardo
".signature": bad command or file name
Hi everyone,
I need to achieve the same using Java or Kotlin programming language, is it possible in 2022? :)
The problem with the PS/PDF family of formats is that they do not necessarily contain text as text.
the letters might be there but not in the correct ordering. This bites me regularly,
when trying to copy code examples from microchip datasheets.
In theory you might get somewhere by converting to some raster format and using an ocr program
on that.

Loading...