Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ps2pdf not working

212 views
Skip to first unread message

netce...@gmail.com

unread,
Jan 18, 2005, 4:20:43 AM1/18/05
to
I am using Ghostscript 7.07 on Fedora Core 3 and have been facing
problems creating PDF files using the ps2pdf command. Whenever I use
the ps2pdf command to convert a PS file into PDF format, a corrupt PDF
output file is created which is a truncated 321 bytes file having the
same contents irrespective of the source PS file. I faced this problem
on earlier version of Fedora and Ghostscript and even after upgrading
to the current versions it has not disappeared. Reinstalling
Ghostscript also did not make any difference. I need pointers /
suggestions to fix the problem.

Thanks,

Maurizio Loreti

unread,
Jan 18, 2005, 4:24:43 AM1/18/05
to
netce...@gmail.com writes:

> I am using Ghostscript 7.07 on Fedora Core 3 and have been facing
> problems creating PDF files using the ps2pdf command.

The current Ghostscript stable release is 8.50, available from
http://www.cs.wisc.edu/~ghost/ ; try to update...

--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybe...@cq.vasa.vg

Stefan Lagotzki

unread,
Jan 18, 2005, 7:59:55 AM1/18/05
to
netce...@gmail.com wrote:
> I am using Ghostscript 7.07 on Fedora Core 3 and have been facing
> problems creating PDF files using the ps2pdf command. Whenever I use
> the ps2pdf command to convert a PS file into PDF format, a corrupt PDF
> output file is created which is a truncated 321 bytes file having the
> same contents irrespective of the source PS file. [...]

Could you post your commandline-switches and options?
You may try to call gs directly:
gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=foo.pdf baz.ps

Stefan

.

netce...@gmail.com

unread,
Jan 18, 2005, 9:15:55 AM1/18/05
to
Thanks for the suggestion.

I used the command line gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
-sOutputFile=foo.pdf baz.ps as suggested and yes, it shows some
additonal information. The output after running this is copied below:

GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file
/usr/share/ghostscript/Resource/Font/Times-Roman.
Can't find (or can't open) font file Times-Roman.
Substituting font Courier for Times-Roman.
Can't find (or can't open) font file
/usr/share/ghostscript/Resource/Font/Courier.
Can't find (or can't open) font file Courier.
Unable to load default font Courier! Giving up.

I changed to the directory /usr/share/ghostscript/Resource/Font/ and
found that it is empty. So most likely this is the problem. However
reinstalling Ghostscript has not fixed it. I will try to find a
solution. Let me know if you have some suggestions.

Thanks,

netce...@gmail.com

unread,
Jan 18, 2005, 9:53:36 AM1/18/05
to
I checked the /usr/share/ghostscript/Resource/Font/ directory on a
system where ps2pdf is working and found it to be empty. So the problem
lies elsewhere. Still wondering.

Stefan Lagotzki

unread,
Jan 18, 2005, 3:41:01 PM1/18/05
to
<netce...@gmail.com>:

> Thanks for the suggestion.
>
> I used the command line gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
> -sOutputFile=foo.pdf baz.ps as suggested and yes, it shows some
> additonal information. The output after running this is copied below: [...]

Try to locate the GhostScript-font-directory. At my linux-box:
/usr/share/ghostscript/fonts/

Try gs -? (it will show the Search path).

You may include the font-directory at the command-line:

gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -I/usr/share/ghostscript/fonts/
-sOutputFile=foo.pdf bar.ps

HTH,
Stefan

.


Helge Blischke

unread,
Jan 19, 2005, 6:59:09 AM1/19/05
to

Look at what Ghostscript tells you about search paths on issuing "gs -h"
(without
the quotes). You may modify the font search path by setting the
environment variable GS_FONTPATH .

Helge

--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360

0 new messages