How do I convert a PRN file to PDF?

22

8

I got a PRN file but I would to convert to PDF so that it will be easier for other people to access. How do I do that?

Marcel

Posted 2009-08-28T04:14:28.737

Reputation: 351

What type of PRN file is this? http://filext.com/file-extension/prn

– random – 2009-08-28T04:24:27.687

Answers

17

Typically, .prn is the suggested file extension on Windows when you use the "print to file" option in any program that can print its content. Which printer driver is used to generate the .prn file depends on the printer you selected when printing (or on your default printer).

Typically, the real content behind that .prn extension may therefore vary as wildly as there are printer driver types available: PostScript (Levels 1, 2, 3), PCL (half a dozen types), ESC/P, ESC/P2, HP/GL, Prescribe, RPCS,.... you name it.

If your *.prn really is a PostScript, you can easily convert it with Ghostscript (or Acrobat Distiller) to PDF.

If your *.prn really is a PCL, you can also convert it, using another program from out of the Ghostscript stable, named GhostPCL.

Here are two example commandlines:

gswin32c.exe ^
    -dBATCH ^
    -dNOPAUSE ^
    -sDEVICE=pdfwrite ^
    -sOutputFile=output.pdf ^
    [...more Ghostscript CLI options as needed...] ^
    c:/path/to/input-which-is-postscript.prn

pspcl6.exe ^
    -dBATCH ^
    -dNOPAUSE ^
    -sDEVICE=pdfwrite ^
    -sOutputFile=output.pdf ^
    [...more Ghostscript CLI options as needed...] ^
    c:/path/to/input-which-is-pcl.prn

For downloading GhostPCL, see here: https://www.ghostscript.com/download/gpcldnld.html.

Kurt Pfeifle

Posted 2009-08-28T04:14:28.737

Reputation: 10 024

And if the prn is ESC/P ? – Sandburg – 2019-10-30T16:13:32.727

@Sandburg: Then I do not know any solution... – Kurt Pfeifle – 2019-10-30T17:35:54.007

6

If you can print the file on Windows, you can install PDF printer driver such as CutePDF, which generates a PDF for you.

Jonas Pegerfalk

Posted 2009-08-28T04:14:28.737

Reputation: 981

4

A PRN file, which is short for printer, is being generated by a postscript printer. now, in order to convert it to pdf, you need to install first a postscript printer (has PS in its name so you would know). Print the doc by selecting 'print to file'. After that, you'll need a pdf conversion utility. Adobe Acrobat will do by simply selecting "Create PDF" and locate your .ps file to change it to PDF format.

If you have other issues with this file, you may check this article on file extension prn for further guidance.

Diana Mayhew

Posted 2009-08-28T04:14:28.737

Reputation: 41

3

Typically PRN files are PostScript, but that is not always the case.

Two links for PostScript reference,

nik

Posted 2009-08-28T04:14:28.737

Reputation: 50 788

1

(1) Use GhostScript and its helpers, see http://pages.cs.wisc.edu/~ghost/. Or (2) rename the .prn to .ps and use CreatePDF.adobe.com to convert to PDF for free (up to three tries).

harrymc

Posted 2009-08-28T04:14:28.737

Reputation: 306 093

0

In dialogue box which appears when we choose to print, choose "save as pdf" in Destination menu. In simple steps: 1.In the dialogue box,Click on Destination. this is the dialogue that appears when we choose to print 2.choose save as pdf in the box that appears and exit this box. this is the box that appears when we click on destination 3.click save in dialogue box

Durga

Posted 2009-08-28T04:14:28.737

Reputation: 1

Welcome to Super User! Please read the question again carefully. Your answer does not answer the original question. – DavidPostill – 2016-05-21T10:28:31.980

0

Actually .PRN file may be of different type depending on what printer it's generated for (one may use file command to see the details in Linux environment). To ensure that it's a postscript file, select 'Metafile to EPS converter' or something like as a printer when you 'Print' your .PRN file from a Windows application. Then, use ps2pdf to produce a .PDF.

#check the type
file infile.prn
  infile.prn: PostScript document text conforming DSC level 3.0, Level 1

#convert
ps2pdf infile.prn outfile.pdf

AndreyS Scherbakov

Posted 2009-08-28T04:14:28.737

Reputation: 101