# DVIPDFM: Transformation Matrix Error

📅 2011-May-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ dvi, errors, miktex, pdf ⬩ 📚 Archive

Problem

The `dvipdfm` program is used to convert a DVI file to a PDF file. For a DVI file which has EPS image files inside, this conversion might sometimes fail with the error shown below:

``````C:\Users\joe>dvipdfm foo.dvi
foo.dvi -> foo.pdf
[1
** WARNING ** Image width=0.0!
** WARNING ** Image height=0.0!
** WARNING ** Transformation matrix not invertible.
** WARNING ** --- M = [0 0 0 0 233.624 -249.417]
]``````

Solution

This error indicates that one or more of the EPS image files included in the DVI file have no width and height information. This is typically caused by EPS files whose `BoundingBox` parameters are all zero. You can check this by opening the EPS file in a text editor and look for a line that resembles this:

``%%BoundingBox: 0 0 0 0``

If you can generate EPS files that have non-zero bounding box values, this conversion error should be gone. For a quick hack to fix an existing EPS file with these values see here.

Tried with: MiKTeX 2.9

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧