The JavaDoc for getResolution @return reads "horisontalPdi", that should be "horizontalDpi".
Fixed using https://svn.apache.org/viewvc?view=revision&revision=1862382