Page 1 of 1

convert clipboard to pdf with equal size

Posted: 2016-01-05T00:00:05-07:00
by tang
hi, this question has been asked before (viewtopic.php?f=1&t=26825&p=121500&hilit=pdf+same+size) but I still can't get original image size in pdf

convert clipboard:myimage -alpha on test.pdf

image size is 200 x 200 pixel, after convert to pdf, become full page.
how to remain original image size?

thanks for help.

Re: convert clipboard to pdf with equal size

Posted: 2016-01-05T00:07:33-07:00
by fmw42
PDF is a vector format and has no pixel size. For images a PDF shell is used to encase the image. -density is used to display the PDF so that it then is converted to pixels. Typically -density 72 is the normal default for converting to pixels. But that may not be the case, if the image in the PDF shell has some internal density. So you would have to extract the image and then display it or find the image's density first. IM has no way to extract the image from a PDF, but there are other tools that can do so. You can try IM's identify -verbose to see what the internal density is of the image. But if that does not show it, then try EXIFTOOL