Awesome this works perfect. My 1 question is what PDF preset does this use? i have a custom PDF preset i use.
That's right, I forgot to put in the save options in my code.
I am not sure which preset it uses, whether it does the default one or whether it's the last-used one.
According to the scripting guide, the PDFSaveOptions property .pDFPreset (is it really capitalized like that?) is assignable to the preset you'd like to use in your PDFSaveOptions.
if you do:
saveOpts.pDFPreset = "MY Preset";
or something that already exists there, maybe you can test this out and see what preset your files are ending up with. You'd have to analyze your file, so if there's some simple visual changes you can test this with, that'd work: if there's color bars and registration marks then you can quickly tell if this is working.