What is the contents of the scene? What happens if you print an empty scene? I think your problem is caused by multiplying the rectangle by 1000. The printer on Windows and on Linux may have different characteristics. You should probably query for the device resolution or do the scaling some other way.