Rotating only 1 page in a multipage 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?".
Post Reply
Awol

Rotating only 1 page in a multipage PDF

Post by Awol »

Hello,

Sort of new to ImageMagicK but loving the funcitonality of it for my needs.

Here is my problem I have a multipage PDF and some of the pages need to be rotated but not all of them.

Is there a way to do this with ImageMagicK that isn't spliting the document up or rotating all the pages?

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

Re: Rotating only 1 page in a multipage PDF

Post by fmw42 »

not that I am aware of. you would need to separate the first page, rotate it, then combine it back with all the other pages
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Rotating only 1 page in a multipage PDF

Post by anthony »

For an example of this see...
Frame by Frame modification
http://www.imagemagick.org/Usage/anim_mods/#frame_mod

Basically it is as fred said. extrart (clone) the frame, modify it and replace the original frame with the modified one.

WARNING: IM is not designed for vector graphic images!!! it will convert your PDF files into a PDF of raster images with a specific 'ideal' resolution.

See... A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply