Page 1 of 1

convert image to pdf

Posted: 2020-01-24T05:53:27-07:00
by tech
Hi All.

I try to convert image to pdf using below comment

magick convert -quiet filename -gravity center -extent 1000x1000 -flatten -density 40 -units pixelspercentimeter filename

pdf converted but some element are missing in pdf. Please help me any one.

Re: convert image to pdf

Posted: 2020-01-24T06:09:59-07:00
by snibgo
Your queston is too vague for an answer.

What version of IM, on what platform?

What is your input? What elements are missing?

I suggest you post a link to your input.

Re: convert image to pdf

Posted: 2020-01-27T02:07:02-07:00
by lelldorin
Try this

Code: Select all

convert -page A4 input.jpg  -gravity center -format pdf out.pdf
I think -format pdf is not really needed if you set the suffix of output file as .pdf