The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Processing PDF documents for text mining with the Process Documents from Files operator

jan_spoererjan_spoerer Member Posts: 10 Contributor II
edited November 2018 in Help

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

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn
    Solution Accepted

    Do any of these PDF's contain encryption? I think that error refers to this.

Answers

  • jan_spoererjan_spoerer Member Posts: 10 Contributor II

    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!

    Jan

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    @jan_spoerer great to hear!  Good luck with your text processing!

  • vicwellervicweller Member Posts: 1 Learner I

    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

Sign In or Register to comment.