Thanks! I'm using scans, so the pdf is already araster image in a pdf. I almost got it working. Next problem appears. I tried both commands (the enters mine for readability. Original command doesn't have enters):
Code: Select all
convert -density 300 -compress ZIP file1.pdf \( -clone 0 -fill none -strokewidth 9 -stroke blue -draw 'rectangle 1595,289 1876,342'
-stroke purple -draw 'rectangle 250,1188 1077,1266'
-stroke green -draw 'rectangle 399,1873 1946,1930' \)
-swap 0 +delete -append file2.pdf
Code: Select all
convert -density 300 -compress ZIP file1.pdf \( -clone 0 -fill none -strokewidth 9 -stroke blue -draw 'rectangle 1595,289 1876,342'
-stroke purple -draw 'rectangle 250,1188 1077,1266'
-stroke green -draw 'rectangle 399,1873 1946,1930' \)
-delete 1 -insert 1 -append file2.pdf
The original has 2 pages, the result has got 1 long page. I'm using this with pdf and multiple-page tiff's. I tried '+repage' and '-page a4' but that doesn't seem to affect the result.
Edit - NVM, deleting -append wasn't that difficult.