merge pre-process here. and use imagemagick itself to convert pdf.