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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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).