In Linux, is there a program to find if an A4 pdf file has 2.5 cm marginals from bottom. I tried to make a Python program for that but I was unable to find a solution. So something like it check all pixels from the bottom and outputs true or false depending if a pixel is found or not.