Conversion ToolsConversion from DVI to PDF with a lot of Warnings

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
mahmood
Posts: 26
Joined: Sun Oct 31, 2010 11:42 am

Conversion from DVI to PDF with a lot of Warnings

Post by mahmood »

When I convert dvi to pdf I get a lot of warnnings. For example:

Code: Select all

egpaper_for_review.dvi -> egpaper_for_review.pdf
[1
** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! systemdict /pdfmark known{userdict /?pdfmark sys...<--

** WARNING ** Unknown token "SDict"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(72, 720)" (in PDF)
** WARNING ** >> xxx "ps:SDict begin [/Producer (dvips + Distiller)/Title ()/Subje..."
** WARNING ** >> Reading special command stopped around >>begin [/Producer (dvips + Distiller)/Title ()/Subject ()/Cre...<<
** WARNING ** Unparsed material at end of special ignored.

Current input buffer is -->! /DvipsToPDF{72.27 mul Resolution div} def/PDFToD...<--

** WARNING ** Unknown token "SDict"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(72, 720)" (in PDF)
** WARNING ** >> xxx "ps:SDict begin /product where{pop product(Distiller)search{p..."
** WARNING ** >> Reading special command stopped around >>begin /product where{pop product(Distiller)search{pop pop po...<<
** WARNING ** Unknown token "SDict"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(49.112, 721)" (in PDF)
** WARNING ** >> xxx "ps:SDict begin H.S end"
** WARNING ** >> Reading special command stopped around >>begin H.S end<<
** WARNING ** Unknown token "SDict"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(49.112, 721)" (in PDF)
....
....
Are they important. How can I fix them?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Conversion from DVI to PDF with a lot of Warnings

Post by Stefan Kottwitz »

mahmood wrote:When I convert dvi to pdf I get a lot of warnings.
Which tool do you use? dvipdf, dvipdfm, dvipdfmx, or dvips and ps2pdf?

Stefan
LaTeX.org admin
mahmood
Posts: 26
Joined: Sun Oct 31, 2010 11:42 am

Re: Conversion from DVI to PDF with a lot of Warnings

Post by mahmood »

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

Re: Conversion from DVI to PDF with a lot of Warnings

Post by Stefan Kottwitz »

dvipdf is actually a combination of dvips and ps2pdf. So you could try one of the other mentioned options, or use dvips and ps2pdf directly to see in which step warnings occur.

Stefan
LaTeX.org admin
mahmood
Posts: 26
Joined: Sun Oct 31, 2010 11:42 am

Conversion from DVI to PDF with a lot of Warnings

Post by mahmood »

let me state more precisely.
  1. the tool that I said generate a lot of warnings is actually

    Code: Select all

    dvipdfmx.exe "egpaper_for_review.dvi"
  2. when I run dvi2ps, there is no warning:

    Code: Select all

    dvips.exe "egpaper_for_review.dvi"
  3. also there is no problem with ps2pdf

    Code: Select all

    ps2pdf.exe "egpaper_for_review.dvi"
bastlwastl
Posts: 1
Joined: Sat Dec 28, 2013 7:37 pm

Conversion from DVI to PDF with a lot of Warnings

Post by bastlwastl »

Hey there,

in case you get these awfull lots of warnings by using the LEd Editor and it's built-in conversion features, here is a simple minded work around:

By clicking on th PDF button in LEd, you invoce a batch-script here: <LEd-Install-Folder>\Batches
In the case you convert the dvi to a pdf it's DviPdf.bat. This is the script you have to edit.

If you have ghostscript installed, you can replace this line:

Code: Select all

dvipdfm.exe %2.dvi
with these lines:

Code: Select all

dvips -q %2.dvi
gswin64c -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%2.pdf -f %2.ps 
and leave the rest, save it and enjoy.

Cheers,
bastlwastl
Post Reply