convert image to pdf

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Posts: 1
Joined: 2020-01-24T05:36:21-07:00
Authentication code: 1152

convert image to pdf

Post 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.

Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert image to pdf

Post 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.
snibgo's IM pages:

Posts: 22
Joined: 2017-06-11T13:56:45-07:00
Authentication code: 1151
Location: Germany

Re: convert image to pdf

Post 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