How to convert layered pdf into multiple image files

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
marc77
Posts: 1
Joined: 2012-05-23T00:52:58-07:00
Authentication code: 13

How to convert layered pdf into multiple image files

Post by marc77 »

Hallo all together,
my issue is as follows:

I have a multilayer pdf file and I want to convert this in multiple image files, doesn't matter the image format (1 file per layer).

Is that possible with convert? How can I acheive that?

Thank you very much and have a nice day!!!

Best Regards.
Marc
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to convert layered pdf into multiple image files

Post by fmw42 »

convert image.pdf +adjoin image_%d.xxx

The above is how to do it in unix. I do not know if %d is windows compatible. It would be if it is from IM and not the OS. Anthony would know better about that.

see
http://www.imagemagick.org/script/comma ... php#adjoin
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to convert layered pdf into multiple image files

Post by anthony »

%d is a printf() format for the standrad C library. It works for windows. It can include some numbers to specify field size and formatting style of the number that is inserted.

You may need to double the percent to escape it in DOS.
http://www.imagemagick.org/Usage/windows/#dos
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply