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

Problem converting dvi to pdf using dvipdf

123 views
Skip to first unread message

horaci...@gmail.com

unread,
Jul 10, 2006, 5:28:46 AM7/10/06
to
Hi,

I use SuSE 9.0 and I want to convert a dvi document (generated with
latex which includes a lot of figures, in .eps format and tables) to
pdf. I have used this method a lot of times with no problem (typing
"dvipdf document.dvi") but now I see the following error message:


ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1


After some googling it seems that my ghostscript version is buggy. But
this is my office's computer; cannot install anything (I am a normal
user), and I have to solve the problem here, that's the most difficult
thing. I thought about building last version of ghostscript from
source, but it seems to be very complicated and I don't know if it
worths.


I also tried using dvipdfx but I should install it, and the same
problem; building from source gives me crazy.


Other program I tried was dvipdfm, but although there are no error
messages in the compilation procedure, when I look at the pdf, figures
are "broken" and sometimes dissapear.


Do you know some other programs to achieve my objetive or do you know
how to solve this situation ?


Thanks!

Bernd Strieder

unread,
Jul 10, 2006, 8:12:34 AM7/10/06
to
Hello,

horaci...@gmail.com wrote:

> I use SuSE 9.0 and I want to convert a dvi document (generated with
> latex which includes a lot of figures, in .eps format and tables) to
> pdf. I have used this method a lot of times with no problem (typing
> "dvipdf document.dvi") but now I see the following error message:
>
>
> ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1

Let's split up what dvipdf does. Try to produce a PostScript file at
first with dvips and check, whether that file is ok. If the result is
ok, then you have a problem with conversion to PDF by Ghostscript. If
the result is not ok, then you have a problem with some of the
PostScript files included by your document. Then try to create a
minimal example showing the problem and come back here.

If you have a correct PostScript result, then you could try pstopdf
included with the xpdf package instead of Ghostscript.

A last option might by, as a sketch, converting all included pictures to
PDF and using pdftex/pdflatex to produce PDF directly. It is not
possible to tell, whether this is feasible from the information you
gave.

>
>
> After some googling it seems that my ghostscript version is buggy. But
> this is my office's computer; cannot install anything (I am a normal
> user), and I have to solve the problem here, that's the most difficult
> thing. I thought about building last version of ghostscript from
> source, but it seems to be very complicated and I don't know if it
> worths.

You could build software into any directory you have access to,
e.g. /tmp. Building software often requires development packages, and
compilers to be installed. So you might have to install a whole tree of
dependent packages. Read the instructions carefully and make sure
everything required is installed.

Using a machine, which cannot be administrated regularly, is a clear
desaster plan in the long run. You should do something about it.

Bernd Strieder

Ralf Stubner

unread,
Jul 10, 2006, 8:26:08 AM7/10/06
to
Bernd Strieder <stri...@informatik.uni-kl.de> writes:

> horaci...@gmail.com wrote:
>>
>> ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1
>
> Let's split up what dvipdf does.

Good idea.

> If you have a correct PostScript result, then you could try pstopdf
> included with the xpdf package instead of Ghostscript.

Unfortunately there is no such tool. There is pdftops, though, which is
better than (old) pdf2ps from GhostScript.

If it is a problem of the PS->PDF conversion, than ESP GS 7.07 is
probablty just to old. AFAIK there have been great improvments in the
PDF production with GS v8.xx.

cheerio
ralf

Bernd Strieder

unread,
Jul 10, 2006, 8:58:47 AM7/10/06
to
Hello,

Ralf Stubner wrote:

> Bernd Strieder <stri...@informatik.uni-kl.de> writes:
>
>> If you have a correct PostScript result, then you could try pstopdf
>> included with the xpdf package instead of Ghostscript.
>
> Unfortunately there is no such tool. There is pdftops, though, which
> is better than (old) pdf2ps from GhostScript.

Absolutely true, I was confused.

The OP might try an online conversion service, e.g.

http://www.ps2pdf.com/convert/index.htm

They use a newer release of GhostScript.

Bernd Strieder

Lars Madsen

unread,
Jul 10, 2006, 9:13:41 AM7/10/06
to
horaci...@gmail.com wrote:
> Hi,
>
> I use SuSE 9.0 and I want to convert a dvi document (generated with
> latex which includes a lot of figures, in .eps format and tables) to
> pdf. I have used this method a lot of times with no problem (typing
> "dvipdf document.dvi") but now I see the following error message:
>
>
> ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1
>
>
> After some googling it seems that my ghostscript version is buggy. But
> this is my office's computer; cannot install anything (I am a normal
> user), and I have to solve the problem here, that's the most difficult
> thing. I thought about building last version of ghostscript from
> source, but it seems to be very complicated and I don't know if it
> worths.
>
>

it is quite easy to build it from source. just remember to include the fonts,
and remember that the default papersize will be the american 'letter' format.

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

Dr Engelbert Buxbaum

unread,
Jul 11, 2006, 9:22:12 AM7/11/06
to
horaci...@gmail.com wrote:

> Hi,
>
> I use SuSE 9.0 and I want to convert a dvi document (generated with
> latex which includes a lot of figures, in .eps format and tables) to
> pdf. I have used this method a lot of times with no problem (typing
> "dvipdf document.dvi") but now I see the following error message:

dvipdf is an old program and no longer supported, hence it was replaced
by dvipdfm and this was recently updated to dvipdfmx. In addition, there
is pdf(La)TeX which can generate pdf-output directly from
(La)TeX-sources, without the detour via dvi.

Note that these solutions require eps-graphics converted to pdf (e.g.
with the perl-script epstopdf), dvipdfm(x) require in addition a bb-file
with the bounding box (generated with ebb).


> this is my office's computer; cannot install anything (I am a normal
> user), and I have to solve the problem here, that's the most difficult
> thing.

Even as a normal user you can still install programs, however they are
then in your home directory and not accessible by other users. So this
is not an efficient route on a multi-user maschine. Better to hand this
over to your SysAdmin.

Dan Luecking

unread,
Jul 11, 2006, 12:08:22 PM7/11/06
to
On Tue, 11 Jul 2006 15:22:12 +0200, Dr Engelbert Buxbaum
<engelber...@hotmail.com> wrote:

>horaci...@gmail.com wrote:
>
>> Hi,
>>
>> I use SuSE 9.0 and I want to convert a dvi document (generated with
>> latex which includes a lot of figures, in .eps format and tables) to
>> pdf. I have used this method a lot of times with no problem (typing
>> "dvipdf document.dvi") but now I see the following error message:
>
>dvipdf is an old program and no longer supported,

My memory says there was such a stand-alone program at one time, but
it was (or became) common to have a script (bash or perl or TeX shell
menu item or whatever) named dvipdf that ran dvips + ps2pdf. When
dvipdfm came around, some of those scripts simply contaim dvipdfm
instead of that combination. The real problem was not lack of support
(dvips, ps2pdf and dvipdfm are all supported) but rather that dvipdf
was (and is) not well-defined. On comp.text.tex, saying one uses
dvipdf could mean one uses
-- a very old program
-- a dvips + ps2pdf script
-- a dvips + (insert other distillation method here) script
-- some other dvi to pdf path.
-- a typo for dvipdfm

> hence it was replaced
>by dvipdfm and this was recently updated to dvipdfmx. In addition, there
>is pdf(La)TeX which can generate pdf-output directly from
>(La)TeX-sources, without the detour via dvi.

It hasn't really been replaced, it is still quite common, judging by
the number of mentions in c.t.t. It is still ill-defined. If someone
says they use it, it only means they don't use pdftex and we have to
waste a few messages inquiring about the exact pathway.

>Note that these solutions require eps-graphics converted to pdf (e.g.
>with the perl-script epstopdf), dvipdfm(x) require in addition a bb-file
>with the bounding box (generated with ebb).

One reason dvipdf as dvips+ps2pdf has survived is it doesn't require
either of these.


Dan
To reply by email, change LookInSig to luecking

--
Posted via a free Usenet account from http://www.teranews.com

Patrick TJ McPhee

unread,
Jul 11, 2006, 11:08:42 PM7/11/06
to
In article <1152523726....@m73g2000cwd.googlegroups.com>,
<horaci...@gmail.com> wrote:

% ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1

You really need a newer version of ghostscript to make a reasonable
conversion to pdf.

% I also tried using dvipdfx but I should install it, and the same
% problem; building from source gives me crazy.

Should this be dvipdfmx? This is an enhanced version of dvipdfm, and is
preferable, but you'll still have to deal with ghostscript, since
dvipdfm uses ghostscript to convert figures to pdf.

% Other program I tried was dvipdfm, but although there are no error
% messages in the compilation procedure, when I look at the pdf, figures
% are "broken" and sometimes dissapear.

Ditto.

To the best of my knowledge, every open-source ps to pdf conversion is
based on gs, and you need at least gs 7.50, or preferably 8.53 to make
a reasonable conversion.
--

Patrick TJ McPhee
North York Canada
pt...@interlog.com

horaci...@gmail.com

unread,
Jul 12, 2006, 10:33:23 AM7/12/06
to
Fortunately, I have solved this problem.

I started removing chapters to the document to detect in which chapter
the error was. After this I continued removing section by section and
so on until I locate the problem was in a subsubsection, where the only
special thing were two eps figures. Once I saw them in detail I noticed
they were about 50Mbyte figures and thought about compressing them to
reduce its "weight" to 5M. After, I latex this and it worked.

Thanks for all your help and support.

Horacio.

horaci...@gmail.com ha escrito:

0 new messages