f



Converting PDF to Postscript

Hi,

Is there anyway to use GhostScript to convert a PDF in to Postscript?
If not what tools are out there that allow you do do this from a
command line with no interaction?

Thanks
-Howard
0
7/29/2009 7:30:29 PM
comp.lang.postscript 3552 articles. 0 followers. Post Follow

4 Replies
732 Views

Similar Articles

[PageSpeed] 6

On Wed, 29 Jul 2009 12:30:29 -0700 (PDT), Howard Webb wrote:

 > Is there anyway to use GhostScript to convert a PDF in to Postscript?

Yes.  pdf2ps is a script that will use gs to do this conversion.

 > If not what tools are out there that allow you do do this from a
 > command line with no interaction?

But a better conversion is usually obtained by using pdftops which
is bundled with xpdf (or poppler-utils in some Linux distributions).

Bob T.
0
BobT (1484)
7/29/2009 9:02:47 PM
In article <slrnh71e7n.3gp.BobT@linus.cs.queensu.ca>, BobT@cs.queensu.ca 
says...
> On Wed, 29 Jul 2009 12:30:29 -0700 (PDT), Howard Webb wrote:
> 
>  > Is there anyway to use GhostScript to convert a PDF in to Postscript?
> 
> Yes.  pdf2ps is a script that will use gs to do this conversion.

The pdf2ps script uses the pswrite device, a level 1 PostScript output 
device. You will get better results (considerably better) by using the 
ps2write device, which outputs level 2 PostScript instead.

Unless you require DSC conformance or level 1 output you should use 
ps2write instead. The ps2ps2 script will do this and despite the name 
works for PDF input as well as PostScript input.


				Ken
0
ken161 (741)
7/30/2009 7:18:01 AM
On Thu, 30 Jul 2009 08:18:01 +0100, ken wrote:
 > In article <slrnh71e7n.3gp.BobT@linus.cs.queensu.ca>, BobT@cs.queensu.ca 
 > says...
 >> On Wed, 29 Jul 2009 12:30:29 -0700 (PDT), Howard Webb wrote:
 >> 
 >>  > Is there anyway to use GhostScript to convert a PDF in to Postscript?
 >> 
 >> Yes.  pdf2ps is a script that will use gs to do this conversion.
 >
 > The pdf2ps script uses the pswrite device, a level 1 PostScript output 
 > device. You will get better results (considerably better) by using the 
 > ps2write device, which outputs level 2 PostScript instead.
 >
 > Unless you require DSC conformance or level 1 output you should use 
 > ps2write instead. The ps2ps2 script will do this and despite the name 
 > works for PDF input as well as PostScript input.

Note to the OP: the ps2write device was introduced in gs-8.61, so you'll
need a recent version.

Bob T.
0
BobT (1484)
7/30/2009 8:06:58 AM
Howard Webb wrote:
> Hi,
> 
> Is there anyway to use GhostScript to convert a PDF in to Postscript?
> If not what tools are out there that allow you do do this from a
> command line with no interaction?
> 
> Thanks
> -Howard

Print to disk, of course.
0
don117 (203)
8/10/2009 3:07:03 AM
Reply: