LEdCompilation via DviPDF fails

Information and discussion about LEd, an integrated LaTeX environment for Windows
Post Reply
Garcia
Posts: 3
Joined: Fri Mar 16, 2012 9:57 am

Compilation via DviPDF fails

Post by Garcia »

Hello,

So, I have a simple LaTeX document in LEd:

Code: Select all

\documentclass[12pt]{article}
\usepackage{capt-of}
\usepackage{wrapfig}
\usepackage{multirow}
\usepackage{hyperref}
\usepackage{graphicx}

\title{My Sample \LaTeX{} Document}
\author{Someone}
\date{2012}

\begin{document}
\maketitle

\begin{figure}[!ht]
\begin{center}
\includegraphics[scale=0.30]{tail.eps}
\captionof{figure}{Sample cation}
\end{center}
\end{figure}

\end{document}
LaTeX compilation is successful, but when i am going to use DviPDF option, there is a unknown problem for me :

Code: Select all

** /b/c12/cWARNING /b/c0/c** Unparsed material at end of special ignored.
Current input buffer is -->! systemdict //pdfmark known{userdict //?pdfmark sys...<--
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(72, 720)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//Producer (dvips + Distiller)//Title ()//Subje..."
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//Producer (dvips + Distiller)//Title ()//Subject ()//Cre...<<
** /b/c12/cWARNING /b/c0/c** Unparsed material at end of special ignored.
Current input buffer is -->! //DvipsToPDF{72.27 mul Resolution div} def//PDFToD...<--
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(72, 720)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin //product where{pop product(Distiller)search{p..."
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin //product where{pop product(Distiller)search{pop pop po...<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(109.854, 704.063)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin H.S end"
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin H.S end<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(109.854, 704.063)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin H.R end"
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin H.R end<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(109.854, 704.063)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//View [//XYZ H.V]//Dest (page.1) cvn //DEST pdf..."
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//View [//XYZ H.V]//Dest (page.1) cvn //DEST pdfmark end<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//PageMode //UseOutlines//Page 1//View [//Fit] //D..."
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//PageMode //UseOutlines//Page 1//View [//Fit] //DOCVIEW pd...<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [ {Catalog}<<>> //PUT pdfmark end"
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [ {Catalog}<<>> //PUT pdfmark end<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin H.S end"
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin H.S end<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin 14.5 H.A end"
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin 14.5 H.A end<<
** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
** W/b/c9/cError:/b/c0/c //typecheck in --pdfmark--
Operand stack:
   --nostringval--   --nostringval--   --dict:1//1(L)--   PUT
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   1910   1   3   %oparray_pop   1909   1   3   %oparray_pop   --nostringval--   1893   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1917   4   3   %oparray_pop   --nostringval--
Dictionary stack:
   --dict:1164//1684(ro)(G)--   --dict:0//20(G)--   --dict:82//200(L)--
Current allocation mode is local
Last OS /b/c9/cerror:/b/c0/c No such file or directory
MiKTeX GPL Ghostscript  9.00: Unrecoverable error, exit code 1
ARNING ** >> at page="1" position="(110.854, 666.202)" (in PDF)
** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//View [//XYZ H.V]//Dest (Doc-Start) cvn //DEST ..."
** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//View [//XYZ H.V]//Dest (Doc-Start) cvn //DEST pdfmark e..<<
** /b/c12/cWARNING /b/c0/c** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false -dGrayImageFilter=//FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=//FlateEncode -dUseFlateCompression=true -sOutputFile="C://Users//UKASZ~1//AppData//Local//Temp//mik6C3B.tmp" "C://Users//Łukasz//Documents//LEdProjects//PdfObj//tail.eps" -c quit<-- failed.
** /b/c12/cWARNING /b/c0/c** Image format conversion for "C://Users//Łukasz//Documents//LEdProjects//PdfObj//tail.eps" failed...
** /b/c9/cERROR /b/c0/c** pdf_ref_obj(): passed invalid object
What can i do to fix this ?
Last edited by localghost on Fri Mar 16, 2012 10:45 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10270
Joined: Mon Mar 10, 2008 9:44 pm

Compilation via DviPDF fails

Post by Stefan Kottwitz »

Hi Garcia,

welcome to the board!

Perhaps try the way over dvips and ps2pdf.

Another option would be using pdfLaTeX and the epstopdf package, by adding:

Code: Select all

\usepackage{epstopdf}
With TeX Live 2011 this could already be automatically working.

Stefan
LaTeX.org admin
Garcia
Posts: 3
Joined: Fri Mar 16, 2012 9:57 am

Compilation via DviPDF fails

Post by Garcia »

Hi,

Unfortunately this trick doesn't work ;/ I know perhaps that this package epstopdf is used for problems with .eps files generally.

I must to say that now i am working on my thesis and i have inserted only two .eps files in my code and one is working and the other one doesn't ;/ weird thing ...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10270
Joined: Mon Mar 10, 2008 9:44 pm

Compilation via DviPDF fails

Post by Stefan Kottwitz »

You could use the epstopdf script for manually converting to pdf images which can be included if pdfLaTeX is used.

If an EPS file causes problems, perhaps upload it as attachment to a forum post, so somebody could test it on his or her own system.

Stefan
LaTeX.org admin
Garcia
Posts: 3
Joined: Fri Mar 16, 2012 9:57 am

Re: Compilation via DviPDF fails

Post by Garcia »

I would like to thank you for your help ;)
I converted EPS files to PDF and after that attached to source.
wt70707
Posts: 2
Joined: Tue Mar 20, 2012 10:19 pm

Compilation via DviPDF fails

Post by wt70707 »

Hello,

I have the similar problem. Anyway, it is weird that the following:

Code: Select all

\documentclass[a4paper]{article}
\usepackage{amsmath}
\usepackage{mathrsfs}
\usepackage{verbatim}
\usepackage{graphicx}

\begin{document}

\begin{figure}
    \centering
    \includegraphics[width=1\textwidth]{po_rate_PID}
    \caption{Virtual Control}
    \label{fig:PositionOrientationRatePID}
\end{figure}

\end{document}

works very well under winedt6 (20101025) and MikTex (2.9.3888) under Window 7, but have the following error:
*****************************************************
** ERROR ** pdf_ref_obj(): passed invalid object.
*****************************************************
when under winedt6 (20110315) and MikTex (2.9.4282) under Windows XP.

The figure po_rate_PID.eps is 180,224 bytes.

This is the output with the newest version of winedt/MikTex:

Code: Select all

<FONTMAP:dvipdfm.map><FONTMAP:cid-x.map>test.dvi -> test.pdf
DVI Comment:  TeX output 2012.03.20:1515
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1(Image:po_rate_
PID.eps[PS]Error: /undefined in 6ea90399f3a942e34
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push   1910   1   3   %oparray_pop   1909   1   3   %oparray_
pop   --nostringval--   1893   1   3   %oparray_pop   1787   1   3   %oparray_po
p   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringv
al--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1164/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--
Current allocation mode is local
Current file position is 167022
MiKTeX GPL Ghostscript  9.00: Unrecoverable error, exit code 1

** WARNING ** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH -sPAPER
SIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false
-dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=
/FlateEncode -dUseFlateCompression=true -sOutputFile="G:/DOCUME~1/TAOWAN~1/LOCAL
S~1/Temp/mikABD.tmp" "C:/wt/McGill/report/review/po_rate_PID.eps" -c quit<-- fai
led.
** WARNING ** Image format conversion for "C:/wt/McGill/report/review/po_rate_PI
D.eps" failed...
,Page:1)
** ERROR ** pdf_ref_obj(): passed invalid object.

Output file removed.

And this is the working out result of the oldest winedt/MikTex:

Code: Select all

<FONTMAP:dvipdfm.map><FONTMAP:cid-x.map>test.dvi -> test.pdf
DVI Comment:  TeX output 2012.03.20:1606
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1(Image:position_orientation_rate_PID.eps[C:/Users/wt/Do
cuments/wt/McGill/report/review/position_orientation_rate_PID.eps][PS]
pdf_image>> Converting file "C:/Users/wt/Documents/wt/McGill/report/review/position_orientation_rate_PID.eps" --> "C:/Us
ers/wt/AppData/Local/Temp/mik69F0.tmp" via:
pdf_image>>   mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayIma
ges=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompres
sion=true -sOutputFile="%o" "%i" -c quit
pdf_image>> ...,Page:1)<cmr10@9.96pt(TFM:cmr10[C:/CTEX/MiKTeX/fonts/tfm/public/cm/cmr10.tfm])
fontmap: cmr10 -> cmr10

pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at font_id=<cmr10,0>.
>]pdf_image>> deleting temporary file "C:/Users/wt/AppData/Local/Temp/mik69F0.tmp"
(cmr10[CMR10][built-in][Type1][20 glyphs][2331 bytes])
Compression saved 308 bytes. Try "-V 5" for better compression
28123 bytes written
Last edited by Stefan Kottwitz on Tue Mar 20, 2012 11:30 pm, edited 1 time in total.
wt70707
Posts: 2
Joined: Tue Mar 20, 2012 10:19 pm

Re: Compilation via DviPDF fails

Post by wt70707 »

I checked again. The old version now also doesn't work. I redid the figures. It works now in the new version. So guess the figures collapsed.

I wonder that when Yap exit abnormally, it means there is errors the compile can not find. And in the new version, the Yap is very slow.
Post Reply