Copy Protected PDFs and PIL
Steve Holden
steve at holdenweb.com
Thu Nov 11 16:01:19 EST 2010
On 11/11/2010 3:28 PM, Brett Bowman wrote:
> I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs
> for my company, but a few hundred of them are copy protected. To make
> matters worse, I can't seem to trap the error it causes: whenever it
> happens PIL throws a "FATAL PDF disallows copying" message and dies. An
> automated way to snap a picture of the PDFs would be ideal, but I'd
> settle for a way to skip over them without crashing my program.
>
> Any tips?
>
Well, you might consider letting us know whether the program gives a
traceback or whether it's a PIL crash, for a start.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon 2011 Atlanta March 9-17 http://us.pycon.org/
See Python Video! http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list