While trying to create a pdf from ps2pdf command on SUSE v12 (tried on centos 7 too), the resulting image is cropped. Command -
convert atms_npp.omgnbc_region4_fr2.png file.ps
ps2pdf file.ps file.pdf
If convert command is used, the resulting file is correct. -
ps2pdf file.ps file_conv.pdf
Do i need to provide additional flags to ps2pdf command ?. I would like to avoid hardcoding resolution with ps2pdf (example: -sPAPERSIZE=) as it is possible that the input png have different resolution.
Please let me know if i can provide more information on this issue.
Here are relevant files - https://bitbucket.org/puneet336/ps2pdf/src/master/.