add signature in PDF...

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
harshal2110
Posts: 3
Joined: 2011-03-04T06:50:12-07:00
Authentication code: 8675308

add signature in PDF...

Post by harshal2110 »

Hello Everybody,

Can anybody give an idea for below problem?

like i want to add signature(signature image) in the last page of given PDF.

I have tried to do but it is taking only one page of PDF and print that signature on that and other pages are gone.

so If anybody help me on this then i will be appreciate a lot..

Thanks in advance.

Thanks.
harshal2110
Posts: 3
Joined: 2011-03-04T06:50:12-07:00
Authentication code: 8675308

Re: add signature in PDF...

Post by harshal2110 »

Hello there,

Please can anybody help in above thing.

I really need it...

I stucked there and got lots of pressure to solve it.

so please help me if anybody have knowledge something about it.


Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: add signature in PDF...

Post by fmw42 »

What is your exact command? What version of IM and ghostscript are you using? What platform?

You can change the pdf device so that you can have multiple frames but no transparency. Look in delegates.xml.

But I am not sure what device you need. I think it is pnmraw instead of pngalpha

I am not an expert on this, but have seen this posted before.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: add signature in PDF...

Post by anthony »

WARNING...
A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
harshal2110
Posts: 3
Joined: 2011-03-04T06:50:12-07:00
Authentication code: 8675308

Re: add signature in PDF...

Post by harshal2110 »

Hello there,

FIrst of all thanks a lot for the reply...

let me explain... what i am doing and what i need to do.

Actually i have uploaded the pdf file...

Now i need to add signature

(signature means image of sign by person for exp .. http://1.bp.blogspot.com/_bBlNFyLU7Ik/T ... nature.png
)
in that pdf at the end of the page..

I am using below command in PHP language

exec("composite -gravity southeast -density 250x250 -depth 8 -geometry +100+150 signature-image.png pdf_sourcefile.pdf pdf_destinationfile.pdf);

If PDF file contains single page then this command working very fine.. and it is adding signare image perfectly.

Now when PDF file contains more than one page.. then it will adding signature in first page and other page is removed.. and finally output of multipage pdf is onepage pdf... which is totally wrong..

so I want to do something so when i add signature .. it will go to the last page of pdf file and add signature over there..

Thanks for all the help by the people in this forum.

I hope you can understand my question or query.. let me know still if i need to explain it more..

Thanks in advance.

Thanks a lot.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: add signature in PDF...

Post by fmw42 »

you have to identify the page using image.pdf[#] where # is the number of the page you want to add it to, then replace the old last page with the new one. This may be a bit tricky.

But why don't you just create a signature page and append it to the end of the pdf? That is much easier.

convert image.pdf signature.pdf newimage.pdf
Post Reply