xpdf already comes bundled with the source code.
Only install the pdf2json binary.