Merging PDF with vector graphics and raster image

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?".
Post Reply
agri.seb
Posts: 1
Joined: 2012-03-18T13:42:15-07:00
Authentication code: 8675308

Merging PDF with vector graphics and raster image

Post by agri.seb »

I need to merging PDF with vector graphics and raster image. As a result, I again need to get PDF with vector graphics.

I use command
convert file.pdf -page +100+200 file.jpg -flatten result.pdf

with different optional keys, but always get an incorrect result (i always get raster image. But i need to get PDF with vector graphics).
Help me, how do I realize my task?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merging PDF with vector graphics and raster image

Post by fmw42 »

Imagemagick will always rasterize your result. You need to find some other solution.

see http://www.imagemagick.org/Usage/formats/#vector
Post Reply