LaTeX forum ⇒ LEdCompilation via DviPDF fails Topic is solved

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

Compilation via DviPDF fails

Postby Garcia » Fri Mar 16, 2012 10:05 am

Hello,

So, I have a simple LaTeX document in LEd:
  1. \documentclass[12pt]{article}
  2. \usepackage{capt-of}
  3. \usepackage{wrapfig}
  4. \usepackage{multirow}
  5. \usepackage{hyperref}
  6. \usepackage{graphicx}
  7.  
  8. \title{My Sample \LaTeX{} Document}
  9. \author{Someone}
  10. \date{2012}
  11.  
  12. \begin{document}
  13. \maketitle
  14.  
  15. \begin{figure}[!ht]
  16. \begin{center}
  17. \includegraphics[scale=0.30]{tail.eps}
  18. \captionof{figure}{Sample cation}
  19. \end{center}
  20. \end{figure}
  21.  
  22. \end{document}

LaTeX compilation is successful, but when i am going to use DviPDF option, there is a unknown problem for me :
  1. ** /b/c12/cWARNING /b/c0/c** Unparsed material at end of special ignored.
  2. Current input buffer is -->! systemdict //pdfmark known{userdict //?pdfmark sys...<--
  3. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  4. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  5. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  6. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(72, 720)" (in PDF)
  7. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//Producer (dvips + Distiller)//Title ()//Subje..."
  8. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//Producer (dvips + Distiller)//Title ()//Subject ()//Cre...<<
  9. ** /b/c12/cWARNING /b/c0/c** Unparsed material at end of special ignored.
  10. Current input buffer is -->! //DvipsToPDF{72.27 mul Resolution div} def//PDFToD...<--
  11. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  12. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  13. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  14. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(72, 720)" (in PDF)
  15. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin //product where{pop product(Distiller)search{p..."
  16. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin //product where{pop product(Distiller)search{pop pop po...<<
  17. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  18. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  19. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  20. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(109.854, 704.063)" (in PDF)
  21. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin H.S end"
  22. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin H.S end<<
  23. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  24. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  25. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  26. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(109.854, 704.063)" (in PDF)
  27. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin H.R end"
  28. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin H.R end<<
  29. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  30. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  31. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  32. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(109.854, 704.063)" (in PDF)
  33. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//View [//XYZ H.V]//Dest (page.1) cvn //DEST pdf..."
  34. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//View [//XYZ H.V]//Dest (page.1) cvn //DEST pdfmark end<<
  35. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  36. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  37. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  38. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
  39. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//PageMode //UseOutlines//Page 1//View [//Fit] //D..."
  40. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//PageMode //UseOutlines//Page 1//View [//Fit] //DOCVIEW pd...<<
  41. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  42. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  43. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  44. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
  45. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [ {Catalog}<<>> //PUT pdfmark end"
  46. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [ {Catalog}<<>> //PUT pdfmark end<<
  47. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  48. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  49. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  50. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
  51. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin H.S end"
  52. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin H.S end<<
  53. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  54. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  55. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  56. ** /b/c12/cWARNING /b/c0/c** >> at page="1" position="(110.854, 666.202)" (in PDF)
  57. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin 14.5 H.A end"
  58. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin 14.5 H.A end<<
  59. ** /b/c12/cWARNING /b/c0/c** Unknown token "SDict"
  60. ** /b/c12/cWARNING /b/c0/c** Interpreting PS code failed!!! Output might be broken!!!
  61. ** /b/c12/cWARNING /b/c0/c** Interpreting special command ps: (ps:) failed.
  62. ** W/b/c9/cError:/b/c0/c //typecheck in --pdfmark--
  63. Operand stack:
  64. --nostringval-- --nostringval-- --dict:1//1(L)-- PUT
  65. Execution stack:
  66. %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--
  67. Dictionary stack:
  68. --dict:1164//1684(ro)(G)-- --dict:0//20(G)-- --dict:82//200(L)--
  69. Current allocation mode is local
  70. Last OS /b/c9/cerror:/b/c0/c No such file or directory
  71. MiKTeX GPL Ghostscript 9.00: Unrecoverable error, exit code 1
  72. ARNING ** >> at page="1" position="(110.854, 666.202)" (in PDF)
  73. ** /b/c12/cWARNING /b/c0/c** >> xxx "ps:SDict begin [//View [//XYZ H.V]//Dest (Doc-Start) cvn //DEST ..."
  74. ** /b/c12/cWARNING /b/c0/c** >> Reading special command stopped around >>begin [//View [//XYZ H.V]//Dest (Doc-Start) cvn //DEST pdfmark e..<<
  75. ** /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.
  76. ** /b/c12/cWARNING /b/c0/c** Image format conversion for "C://Users//Łukasz//Documents//LEdProjects//PdfObj//tail.eps" failed...
  77. ** /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.
Reason: code marked

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

Postby Stefan Kottwitz » Fri Mar 16, 2012 10:52 am

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:

  1. \usepackage{epstopdf}


With TeX Live 2011 this could already be automatically working.

Stefan
Site admin

Garcia
Posts: 3
Joined: Fri Mar 16, 2012 9:57 am

Postby Garcia » Fri Mar 16, 2012 12:21 pm

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: 9164
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Mar 16, 2012 12:39 pm

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
Site admin

Garcia
Posts: 3
Joined: Fri Mar 16, 2012 9:57 am

Postby Garcia » Fri Mar 16, 2012 7:37 pm

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

Postby wt70707 » Tue Mar 20, 2012 10:36 pm

Hello,

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

  1. \documentclass[a4paper]{article}
  2. \usepackage{amsmath}
  3. \usepackage{mathrsfs}
  4. \usepackage{verbatim}
  5. \usepackage{graphicx}
  6.  
  7. \begin{document}
  8.  
  9. \begin{figure}
  10. \centering
  11. \includegraphics[width=1\textwidth]{po_rate_PID}
  12. \caption{Virtual Control}
  13. \label{fig:PositionOrientationRatePID}
  14. \end{figure}
  15.  
  16. \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:
  1. <FONTMAP:dvipdfm.map><FONTMAP:cid-x.map>test.dvi -> test.pdf
  2. DVI Comment: TeX output 2012.03.20:1515
  3. <AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1(Image:po_rate_
  4. PID.eps[PS]Error: /undefined in 6ea90399f3a942e34
  5. Operand stack:
  6.  
  7. Execution stack:
  8. %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
  9. - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
  10. lse 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_
  11. pop --nostringval-- 1893 1 3 %oparray_pop 1787 1 3 %oparray_po
  12. p --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringv
  13. al-- --nostringval-- 2 %stopped_push --nostringval--
  14. Dictionary stack:
  15. --dict:1164/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
  16. Current allocation mode is local
  17. Current file position is 167022
  18. MiKTeX GPL Ghostscript 9.00: Unrecoverable error, exit code 1
  19.  
  20. ** WARNING ** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH -sPAPER
  21. SIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false
  22. -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=
  23. /FlateEncode -dUseFlateCompression=true -sOutputFile="G:/DOCUME~1/TAOWAN~1/LOCAL
  24. S~1/Temp/mikABD.tmp" "C:/wt/McGill/report/review/po_rate_PID.eps" -c quit<-- fai
  25. led.
  26. ** WARNING ** Image format conversion for "C:/wt/McGill/report/review/po_rate_PI
  27. D.eps" failed...
  28. ,Page:1)
  29. ** ERROR ** pdf_ref_obj(): passed invalid object.
  30.  
  31. Output file removed.



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

  1. <FONTMAP:dvipdfm.map><FONTMAP:cid-x.map>test.dvi -> test.pdf
  2. DVI Comment: TeX output 2012.03.20:1606
  3. <AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1(Image:position_orientation_rate_PID.eps[C:/Users/wt/Do
  4. cuments/wt/McGill/report/review/position_orientation_rate_PID.eps][PS]
  5. pdf_image>> Converting file "C:/Users/wt/Documents/wt/McGill/report/review/position_orientation_rate_PID.eps" --> "C:/Us
  6. ers/wt/AppData/Local/Temp/mik69F0.tmp" via:
  7. pdf_image>> mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayIma
  8. ges=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dUseFlateCompres
  9. sion=true -sOutputFile="%o" "%i" -c quit
  10. pdf_image>> ...,Page:1)<cmr10@9.96pt(TFM:cmr10[C:/CTEX/MiKTeX/fonts/tfm/public/cm/cmr10.tfm])
  11. fontmap: cmr10 -> cmr10
  12.  
  13. pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at font_id=<cmr10,0>.
  14. >]pdf_image>> deleting temporary file "C:/Users/wt/AppData/Local/Temp/mik69F0.tmp"
  15. (cmr10[CMR10][built-in][Type1][20 glyphs][2331 bytes])
  16. Compression saved 308 bytes. Try "-V 5" for better compression
  17. 28123 bytes written
Last edited by Stefan Kottwitz on Tue Mar 20, 2012 11:30 pm, edited 1 time in total.
Reason: code marked

wt70707
Posts: 2
Joined: Tue Mar 20, 2012 10:19 pm

Postby wt70707 » Fri Mar 23, 2012 8:28 pm

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.


Return to “LEd”

Who is online

Users browsing this forum: No registered users and 1 guest