Save PDF to container field via script
I need to automate saving a PDF into a container field, I know that the creation of the PDF works as I have tailored this script from another I have used to create the PDF for viewing purposes.
I keep getting a 102 error and cant see to see why.....
Script is below. Any tips would be greatly appreciated.