960gs-print is a project mainly written in Python, it's free.
960gs for A4 size print.
convert.py just converts all the px values in 960gs into pt values so that the total width fits an A4 size paper.
pt = ( 595 / 960 ) * px