[Solved] How can I replace a single PDF page using Imagemagick?


A specific page or range of pages can be specified using the bracket syntax with zero-based indexing. For instance, [8] will refer to the ninth page, and [0-6] to the first seven pages. Using this, a duplicate of the PDF with the 8th page replaced can be achieved as follows:

convert my-file.pdf[0-6] page-8.png my-file.pdf[8] output-file.pdf

1

solved How can I replace a single PDF page using Imagemagick?