Every once in a while some of the PDFs are exported as empty files (their file size is 0KB). If I run the script again then things normally work fine. I have run this script on Windows XP and Windows Vista and have had this happen on both platforms. Has anyone had a similar experience or know why this occurs?
The files are actually fairly empty. If I try to open them in Acrobat I get an error that says something like "the file is invalid". If I get this error again I'll make sure to open them in a text editor or a hex editor to see if they have anything in them at all and ascertain the actual file size.