Conversion Toolsps2pdf | Failure due to empty Bounding Box

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
majin
Posts: 5
Joined: Sat Mar 03, 2012 8:12 pm

ps2pdf | Failure due to empty Bounding Box

Post by majin »

Hey,

I had a lot of errors today, first of all I had no Perl script and than my Ghostscript has an error. I could fix that. But now I got just white pages, and I got:

Code: Select all

!!! Warning: Empty Bounding Box is returned by Ghostscript!
!!!   Page 10: 0 0 0 0
!!! Either there is a problem with the page or with Ghostscript.
!!! Recovery is tried by embedding the page in its original size.
I found some threads here, but nothing helps. The place where the images should be, are empty. One guy posted his preamble and it seems that there were a few errors maybe its the same here, I dont know. But I dont think so, it compiles on my MAC, but not in Windows -.-

Code: Select all

\usepackage[ngerman]{babel}      
\usepackage[utf8]{inputenc}       
\usepackage[T1]{fontenc}          
\usepackage{makeidx}               
\usepackage{times}            
\usepackage{longtable}             
\usepackage{graphicx}             
\usepackage{auto-pst-pdf}
\usepackage{subscript}
\usepackage{amsmath} 
\usepackage{textcomp}
\usepackage{fancyvrb}              
\usepackage{tabularx}
\usepackage{footnote}
\usepackage{caption} 

\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{pgfplots}
\usepackage{subfig}
\usepackage{amssymb}
\usepackage{listings}
\usepackage{cite}
\usepackage{ifthen}
\usepackage{listings}
%\usepackage{hyperref}
\usepackage{color}
I hope anyone can help me.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: ps2pdf | Failure due to empty Bounding Box

Post by Stefan Kottwitz »

Hi Majin,

welcome to the board!

Perhaps post such a PS file, which causes the conversion to fail, as attachment. We could try the conversion on our systems. For this, click the "Upload attachment" button below the text edit field when writing.

Stefan
LaTeX.org admin
majin
Posts: 5
Joined: Sat Mar 03, 2012 8:12 pm

Re: ps2pdf | Failure due to empty Bounding Box

Post by majin »

Hi Stefan,

sure :)

And thanks for your help!
Attachments
constraint_on_one_layer.ps
(82.01 KiB) Downloaded 522 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: ps2pdf | Failure due to empty Bounding Box

Post by Stefan Kottwitz »

That example works for me, with ps2pdf. I attach the result.

What exactly did you do, which command did you write?

Stefan
Attachments
constraint_on_one_layer.pdf
(16.39 KiB) Downloaded 423 times
LaTeX.org admin
majin
Posts: 5
Joined: Sat Mar 03, 2012 8:12 pm

ps2pdf | Failure due to empty Bounding Box

Post by majin »

As I've said, on my MAC it compiles. But not on my Windows machine...
So I do not think that I made a mistake in the Latex-Code...

Ive installed miktex 2.9, tried to compile it and got one error after another. I did the following:

- installed new Texworks, so I dont use miktex-texworks anymore
- installed perl script, ActivePerl I think
- installed new ghostscript

since that I got the msg I described, it hasnt compiled before in windows.

And I do nothing else than this:

Code: Select all

[...]
\begin{figure}[!h]
\centering
	\mbox{
	\includegraphics{images/start.ps}
	\includegraphics{images/layer.ps}
	}
\caption{Regeln zum erstellen von Layern und Shapes}
\label{rulesLS}
[...]
\end{figure}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: ps2pdf | Failure due to empty Bounding Box

Post by Stefan Kottwitz »

Your topic title means ps2pdf, so I expected a conversion problem. Your last post makes clear, that you mean LaTeX compiling and probably epstopdf, not ps2pdf. Is this correct?

Now that you showed your code, I can see you include .ps files. These are not directly supported, but LaTeX supports .eps files, encapsulated postscript. So you need to produce eps files.

Stefan
LaTeX.org admin
majin
Posts: 5
Joined: Sat Mar 03, 2012 8:12 pm

ps2pdf | Failure due to empty Bounding Box

Post by majin »

I know that they arent supported, thats why I use

Code: Select all

\usepackage{auto-pst-pdf}
and I dont expect many other packages which uses perl and ghostskript...

Anyways, I just have the .ps-files and obv. you are able to convert them and my MAC too.

Where the heck is my problem? I dont get it :(
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

ps2pdf | Failure due to empty Bounding Box

Post by Stefan Kottwitz »

It's for pstricks and postscript code, but not for embedding ps files. You could use

Code: Select all

ps2pdf start.ps
on the command line though, converting the ps files to pdf files, one by one, and include the generated pdf files instead.

This could fix it for now, later just produce eps files instead, or directly pdf.

Stefan
LaTeX.org admin
majin
Posts: 5
Joined: Sat Mar 03, 2012 8:12 pm

Re: ps2pdf | Failure due to empty Bounding Box

Post by majin »

Hmm that doesnt explain why its not working, but I like your workaround :)
thanks a lot :)
Post Reply