Re: Copy Protected PDFs and PIL

2010-11-14 Thread Alexander Gattin
Hello, On Fri, Nov 12, 2010 at 12:00:55PM -0800, Brett Bowman wrote: > MRAB - > I've tried worker threads, and it kills the > thread only and not the program as a whole. I > could use that as a work-around, but I would > prefer something more direct, in case other > problems arise. Looks like th

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Steve Holden
On 11/12/2010 12:00 PM, Brett Bowman wrote: > Steve Holden - > A traceback sounds like a great idea, but I don't know how to go about > it, or know what is involved. Could you suggest a tutorial I could follow? > The traceback is the listing of modules and line numbers that you normally get when

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Emile van Sebille
On 11/12/2010 12:00 PM Brett Bowman said... FATAL PDF disallows copying I ran into something like this about six months ago. IIRC, I was able to detect this setting (using reportlab I think), but a quick look to rediscover what I did specifically didn't yield anything useful. I'm pretty su

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Robert Kern
On 11/12/10 2:00 PM, Brett Bowman wrote: > A whoops, good catch. I meant to say gfx and swftools. I'm using PIL to > modify the images once I get a PNG from swftools, and I mis-spoke. There is nothing you can do to catch the error. swftools is not written to be used as a Python library, so it

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Brett Bowman
To answer various question: MRAB - I've tried worker threads, and it kills the thread only and not the program as a whole. I could use that as a work-around, but I would prefer something more direct, in case other problems arise. Steve Holden - A traceback sounds like a great idea, but I don't k

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Robert Kern
On 2010-11-11 14:28 , 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

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Brett Bowman
Windows currently, though I also have a Linux box running Ubuntu if need be. On Thu, Nov 11, 2010 at 12: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,

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Emile van Sebille
On 11/11/2010 12:28 PM Brett Bowman said... 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 disallow

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Steve Holden
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 dis

Re: Copy Protected PDFs and PIL

2010-11-11 Thread MRAB
On 11/11/2010 20:28, 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 c

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Philip Semanchuk
On Nov 11, 2010, at 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

Copy Protected PDFs and PIL

2010-11-11 Thread Brett Bowman
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