This might be slightly off topic as I'm not sure where the source of my problems lie.
I'm trying to split a large PDF into single pages so I can then use Image::Magick to convert them to GIFs. I hit CPAN and immediately find PDF::Extract (how convenient!).
How to split a pdf into multiple pages is right in the synopsis. Pefect!
Here's the problem. While it seems to work, the PDFs aren't readable. I get the following error.
"There was an error opening this document. The file is damaged and could not be repaired."
There are no errors generated while extracting the pages and upon cursory inspection, the markup looks proper. I've tried to view them on several machines/versions of acrobat (and more importantly, process with Image::Magick) with no luck. I tried a different PDF and it works fine. The PDFs I'm trying to process use FlateDecode if that matters.
Anyone have suggestions on how to troubleshoot this? The Acrobat error is pretty much useless in helping determine what the problem is. I've been googling for a PDF validator with no luck as well. If anyone has any suggestions or other opensource alteratives to splitting the files, I'd appreciate it.
Thanks,
-Lee
-Lee
"To be civilized is to deny one's nature."