Closed InputObject2 closed 4 months ago
Thanks for offering these changes @InputObject2 but I'm not really looking to increase the scope or functionality of these scripts much wider to keep maintenance reasonable, they're really here to provide some simple starting points or examples for various scenarios.
Feel free though to extract your more developed work into it's own repository for it to then be added to the "Community Projects & Scripts" list in the project readme.
I ended up reworking the original script quite a bit since I wanted to put the different functions on their own to simplify adding more parsers in the future if needed.
I also added a java check since pdf2html requires java to be in the path to be able to run the .jar for conversion.
There's also some logging on import.
I'm planning to add another modification to this script to parse a folder (if that's what is provided instead of a file name) and upload all the supported files it finds in it.