Conversion to Java due to lack of effective python PDF libraries