How to create layered PDF from set of images?

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
daim1
Posts: 1
Joined: 2015-10-19T06:02:15-07:00
Authentication code: 1151

How to create layered PDF from set of images?

Post by daim1 »

Hello!

I have set of images like this:
page1_1.png
page1_2.png
page1_3.png
page2_1.png
page2_2.png
page2_3.png

What will I do with IM to create an output PDF file with 2 pages and 3 layers on each. For example page 1 should be with page1_* and has layers 1-3 that tweaks variations from page1_1 to page1_3. Same with page 2.

Thanks for any help!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to create layered PDF from set of images?

Post by snibgo »

If each page should have its images vertically beneath each other:

Code: Select all

convert ^
  ( page1_1.png page1_2.png page1_3.png -append ) ^
  ( page2_1.png page2_2.png page2_3.png -append ) ^
  out.pdf
That is Windows CMD syntax. Adjust for other shells.
snibgo's IM pages: im.snibgo.com
Post Reply