Page 1 of 1
add signature in PDF...
Posted: 2011-03-06T22:47:32-07:00
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.
Re: add signature in PDF...
Posted: 2011-03-21T06:30:24-07:00
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.
Re: add signature in PDF...
Posted: 2011-03-21T10:05:31-07:00
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.
Re: add signature in PDF...
Posted: 2011-03-21T19:29:20-07:00
by anthony
Re: add signature in PDF...
Posted: 2011-03-22T23:57:29-07:00
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.
Re: add signature in PDF...
Posted: 2011-03-23T09:47:11-07:00
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