After printing your calibration page, measure the rulers and ensure that they are the correct length. If, for example, you measure the "height" ruler to actually be 99mm instead of 100mm, you can set theMAGIC_H_CORRECTIONvalue to100.0 / 99.0which will result in a stretch value of1.0101010...