Dynamo Freezing on automatic mode

My problem lies in the print PDF(multiple formats) node which I believe is from the DynamoPDF package. I know there have been problems that can’t be resolved with automatic mode but maybe someone knows how to bypass it here or if I am doing something wrong because it works fine on manual mode. Here is my script:

Thanks in advance.