I have the same problem that ooSQLite says there is a problem with the pdf file and won't continue. Unfortunately, I don't even see what the problem is. The logic looks correct to me.
I'll have to spend a it of time to figure it out. I'll let you know when I do.