added functionality to support custom pdf2html path