Hi
i am converting pdf to jpg using IM.
i works fine if pdf contains an image and simulteneously resizing same jpg.
1)if by chance pdf does not conatins any image then complete black area is displayed in .jpg file.
2) in second case if pdf not contains image and if we remove -resize command then output generates as expected.
i want to convert plus resize .
what is problem???
i have tried installing latest version of ghostscript but nothing happens.
pdf to jpg conversion
Re: pdf to jpg conversion
You need to post more information e.g. IM version, platform and your command. Also the problem pdf would help.
Re: pdf to jpg conversion
IM version is ImageMagick-6.8.4-Q16
following is the command for conversion using c#
string arguments = string.Format(@"-density 300 -depth 8 -quality 96 {0} {1} {2} ", "\"" + ImagePath.ToString() + "\"", "-resize \"" + htwd + "\" ", "\"" + filename + "\"");
where ImagePath is souce image i.e .pdf file and htwd is widthXheight to be resize and filename is output file .jpg
following is the command for conversion using c#
string arguments = string.Format(@"-density 300 -depth 8 -quality 96 {0} {1} {2} ", "\"" + ImagePath.ToString() + "\"", "-resize \"" + htwd + "\" ", "\"" + filename + "\"");
where ImagePath is souce image i.e .pdf file and htwd is widthXheight to be resize and filename is output file .jpg