Page 1 of 1
Logo JPG on multi page PDF
Posted: 2012-02-05T21:45:03-07:00
by Hedgehoguse
Hello,
I want to place a logo on each page of the PDF file. I'm trying:
Code: Select all
convert ( file.pdf[0] water.jpg -gravity NorthWest -compose multiply -composite ) file.pdf -delete 1 result.pdf
But the logo put on the first page only.
Thanks for help.
Re: Logo JPG on multi page PDF
Posted: 2012-02-06T01:08:26-07:00
by Bonzo
file.pdf[0]
This is telling IM to use page 1 only - try removing the [0]
Re: Logo JPG on multi page PDF
Posted: 2012-02-06T23:18:03-07:00
by Hedgehoguse
Thank you!
I still do not quite understand the syntax IMagick.
Re: Logo JPG on multi page PDF
Posted: 2012-02-07T00:59:58-07:00
by Bonzo
You are not using Imagick but command line.
Imagick is built into php whereas Imagemagick can be run from the command line in php.
There are lots of examples here:
http://www.imagemagick.org/Usage/
Are you using it from php ? as I have some examples on my site as well.
Re: Logo JPG on multi page PDF
Posted: 2012-02-07T01:36:30-07:00
by Hedgehoguse
Yes, I do it in PHP, but it's easier to think using the command line. Pardon

Re: Logo JPG on multi page PDF
Posted: 2012-02-07T22:07:13-07:00
by anthony
WARNING: ImageMagick will rasterize the PDF. that is it will convert the internal vector format of a PDF to a pixmap!
This may be detrimental to what you are after!
A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector