Convert the pdf file into JSON format