Processing PDF documents for text mining with the Process Documents from Files operator
I tried processing large PDF documents using the Process Documents from Files operator. When running the process, RapidMiner returns an error while processing the Process Documents from Files operator. The error message is: "Process failed. javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher."
According to Marco Böck's post in this thread, the operator should be able to process PDF documents by now, if I understood him correctly.
Is there a way to process PDF documents without any workarounds? Any hints are highly appreciated. Thank you!
Best Answer
-
Do any of these PDF's contain encryption? I think that error refers to this.
1
Answers
-
Do any of these PDF's contain encryption? I think that error refers to this.
1 -
Thank you Thomas! After you pointed out that the issue could result from problematic PDFs, I tried RapidMiner on all PDF documents one-by-one and identified two PDFs that throw error messages. All the other PDFs work perfectly!
And I took the other two PDFs and loaded them into the PDF24 Creator and saved them again using the PDF24 Creator. Now these two PDFs can also be processed by RapidMiner.
Thank you again!
Jan2 -
@jan_spoerer great to hear! Good luck with your text processing!
1 -
Agreed with the solution: I ran into the same, didn't figure out to read what the error stood for. Tried to encrypt the document through the third-party application, this one did the thing https://edit-pdf.pdffiller.com/ and then the script works as supposed to. I guess it would be possible to do with the Acrobat, which is more common thing for such purposes, but it's cheaper and I don't know any PDF encryption tool for free
0