DVIPDFM: Transformation Matrix Error

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

About these ads

One thought on “DVIPDFM: Transformation Matrix Error

  1. [...] chooru::code Marginalia on programming and software. HomeAbout RSS Feed ← DVIPDFM: Transformation Matrix Error [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s