This is a utility for adjusting the margins (cropping or extending) of pdf files. It works with pdf files of any length.
HOW TO USE THIS PROGRAM:
- put the program (margins_pdf.py) in the folder with the file you want to modify
- the program extend the margins by 100 points. If you want to change this, open the program in a text editor and change the variable 'margin' to your desired value. If you want to extend/crop only left margin adjust variable 'left' to 'True' if only right margin set 'right' to 'True'.
- You can also crop the image from the bottom by modifying the 'bottom' variable
- just run margins_pdf.py in terminal by writing "python3 margins_pdf.py" and this will automatically find your pdf file and perform the selected action