Convert pdf files to images(png)
pdf2img.py -i <inputPath> -o <outputPath>
# convert all pdf files in ./pdf to ./images/xxx/xxx_i.png
pdf2img.py -i pdf -o images
Convert images(png) to pdf file.
png2pdf.py -i <inputPath> -o <outputPath>
# convert all png files in ./images to test.pdf
png2pdf.py -i images -o test.pdf