Have you taken a look at t1utils in the archives?