Big update to the PDF Lua Script. Small update to Jar script