Page 1 of 1

How to ignore Specifying area and page in imagemagick?

Posted: 2018-07-24T01:28:41-07:00
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.

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

Posted: 2018-07-24T04:56:17-07:00
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.

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

Posted: 2018-07-26T00:02:18-07:00
by PhillpZeng
draw is working,but could you give an example how to use rasterize to ignore specify pages?
Thank you very much.

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

Posted: 2018-07-26T08:52:35-07:00
by fmw42

Code: Select all

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