Kile ⇒ dvips: ! Bad DVI file: first byte not preamble
dvips: ! Bad DVI file: first byte not preamble
I tried to find something similar with the search-function but no result. When i try to convert the dvi-file into a pdf-file with the following command:
dvipdf bla.tex > bla.pdf
i get the error-message:
dvips: ! Bad DVI file: first byte not preamble
Does anybody know how to fix this?
Olli
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
dvips: ! Bad DVI file: first byte not preamble
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
dvips: ! Bad DVI file: first byte not preamble
It looks like you're trying to convert a .tex file to .ps or .pdf using dvi(ps)(pdf).
dvips is, as its name implies, a tool for converting a .dvi file to a .ps file.
(And dvipdf is for converting a .dvi file to a .pdf file.)
If you're starting from a .tex file, you need to latex it first.
latex bla.tex
That should create bla.dvi. Then you can run
dvips bla.dvi
(to create bla.ps --- or dvipdf bla.dvi to create bla.pdf).