[magick-users] Draw test variables fails
Adam Dershowitz
adershowitz at exponent.com
Tue Aug 12 11:24:20 PDT 2008
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
More information about the Magick-users
mailing list