Some days ago everything was working fine and I was able to run the auto-pst-pdf package using pdflatex --shell-escape option.
Whenever I try to generate everything again, the tool gets stuck on the PDFCrop tool for a couple of minutes and after some minutes I realize that the program produce a whole version of the document cropped.
Of course if I set the auto-pst-package to off, I get a normal document without the reproduction of the \matlabfig figures.
This is the error I get.
and this is the preamble of my latex file,"-------------------------------------------------"
"auto-pst-pdf: Auxiliary LaTeX compilation"
"-------------------------------------------------"
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
entering extended mode
Package auto-pst-pdf Warning:
Creation of mac_cr-autopp.dvi failed.
This warning occured on input line 124.
PDFCROP 1.23, 2010/01/09 - Copyright (c) 2002-2010 by Heiko Oberdiek.
!!! Warning: Empty Bounding Box is returned by Ghostscript!
!!! Page 6: 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.
Code: Select all
\documentclass[a4paper, 12pt, pdftex]{book}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{color}
\usepackage[pdftex]{graphicx}
\usepackage{float}
\usepackage{pdflscape}
\usepackage{epstopdf}
\graphicspath{{C://Thesis/figures/}}
\usepackage[table]{xcolor}
\usepackage{multirow}
%\usepackage{a4wide}
%\textwidth 16.59cm
%\textheight 21.94cm
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{attachfile}
\usepackage{psfrag}
\usepackage{fancyhdr}
\usepackage[on]{auto-pst-pdf}
\parskip 7.2pt
\parindent 0pt
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\setlength{\headheight}{15pt}
\begin{document}....
PS I have all my figures in the same folder of the tex file, and other .png pictures are rendered correctly so i assume the graphics path is correct
using MikTex2.8, and LEd