Operating System - HP-UX
1821249 Members
2850 Online
109632 Solutions
New Discussion юеВ

Convert PS file to PDF File

 
Jupiracy
Occasional Advisor

Convert PS file to PDF File

I want convert Post Script File to PDF File, but I receiving the following error:

gs -sDEVICE=pdfwrite -sOutputFile=filename.pdf
Initializing... Unknown device: pdfwrite
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: Convert PS file to PDF File

What version of "gs" are you running? Does the pdfwrite device file exist?

if you do a "gs -help | grep pdfwrite" what do you get back?

live free or die
harry
Live Free or Die
Jupiracy
Occasional Advisor

Re: Convert PS file to PDF File

The commad gs -help show the following message:

hostscript version 2.6.2 (4/19/95)
Copyright (C) 1990-1995 Aladdin Enterprises, Menlo Park, CA.
Usage: gs [switches] [file1.ps file2.ps ...]
Available devices:
x11 pbm pbmraw pgm pgmraw ppm ppmraw bit
Most frequently used switches: (you can use # in place of =)
@ treat file like part of the command line
(to get around DOS command line limit)
-d[=] define name as token, or null if no token given
-f read this file even if its name begins with - or @
-gx set width and height (`geometry'), in pixels
-I add prefix to search path
-q `quiet' mode, suppress most messages
-r set resolution, in pixels per inch
-s= define name as string
-sDEVICE= select initial device
-sOutputFile= select output file: embed %d for page #,
- means stdout, use |command to pipe
`-' alone as a file name means read from stdin non-interactively.
For more complete information, please read the use.doc file.
Jupiracy
Occasional Advisor

Re: Convert PS file to PDF File

how can'I create pdfwrite device file?
Stefan Schulz
Honored Contributor

Re: Convert PS file to PDF File

Hi,

you are using a pretty old version of ghostscript. Check the Porting Center for new binaries or sources of gs. We are currently using gs-5.10.

I don't know how to create a pdfwrite device. As far as i understand the documentation this is not a UNIX device but a gs device. If you have the sources you might want to check them. It might be that the pdfwrite device of gs wasn't build or configured.

But i think it's better to get the newest binaries. The german mirror of the Porting Center is at http://hpux.asknet.de you will find a link to a mirror near you on the starting page.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.