I tried to run this python script in R Studio in a python script, somehow it just takes the second "path2.pdf" pdf file and crops this and not the first. If I chan