How to ignore Specifying area and page in imagemagick?

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
PhillpZeng
Posts: 4
Joined: 2018-07-20T02:16:20-07:00
Authentication code: 1152

How to ignore Specifying area and page in imagemagick?

Post by PhillpZeng »

I am a newer for imagemagick, now, I want to find the difference in PDF files, PDF files have many pages and information, Howerver, the footer&header and specifying pages(e.g.The first page) no need do any comparision, how can I ignore Specifying area (e.g. Timestamp) in ImageMagick when I compare them?
thank you.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to ignore Specifying area and page in imagemagick?

Post by snibgo »

You can rasterize just a certain page (or range of pages) with [N] where N is a page number from 0.

If you have two pages that you want to compare, but they both have dates in the same location that you want to ignore, you can paint over the dates by drawing rectangles.
snibgo's IM pages: im.snibgo.com
PhillpZeng
Posts: 4
Joined: 2018-07-20T02:16:20-07:00
Authentication code: 1152

Re: How to ignore Specifying area and page in imagemagick?

Post by PhillpZeng »

draw is working,but could you give an example how to use rasterize to ignore specify pages?
Thank you very much.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to ignore Specifying area and page in imagemagick?

Post by fmw42 »

Code: Select all

convert image.pdf[0] result.png
renders just the first page. Numbering in imagemagick starts with 0.
Post Reply