I am trying to add displayed page number to a pdf. The problem is that the draw command is not expanding the variables. I am not sure what I am doing wrong. I am ending up with the literal "%p" rather than the actual page number. I have tried a few different things like this:
convert testin.pdf -draw 'text 100,100 "%p"' testout.pdf If I do it this way: convert testin.pdf -draw 'text 100,100 %p' testout.pdf then I get an error: convert: Non-conforming drawing primitive definition `p'. and my image just has a literal %. Just to make sure that it was not an issue with gs and pdfs I also tried a few tests with jpgs and got the same results. I do know that montage is correctly adding labels so things like this do work: montage -label "%f" *.jpg output.jpg What am I doing wrong? How can I add page number to a pdf? I am using ImageMagick 6.4.2-7 on a Mac, and using the Bash shell. Thanks much. --Adam _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
