Document pitch-calculation process