Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - add handwrite siganture to pdf form
  FAQ FAQ  Forum Search   Register Register  Login Login

add handwrite siganture to pdf form

 Post Reply Post Reply
Author
Message
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Topic: add handwrite siganture to pdf form
    Posted: 05 May 20 at 11:01PM
is there away to add signature drawing possibility or image as hanwrite signature ?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3152
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 20 at 10:32PM
Hi,

yes... with image.
Here's a normal sample from the kb:
https://www.debenu.com/kb/add-visual-digital-signature-to-a-pdf-programmatically/
Here you'll find all related functions:
https://www.debenu.com/docs/pdf_library_reference/SecurityAndSignatures.php

Cheers and welcome here,
Ingo

Cheers,
Ingo

Back to Top
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 20 at 9:18PM
thanks.
i will check it.
Back to Top
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 20 at 9:24PM
what you suggest is to sign with pfx file

i just want to add "handwrite" signature (with the mouse) in a PDF form.
or just PDF (with no form).
some thing like annotation but when the user add the BMP or sign with the mouse,
save the file and not let any one touch the "signature"
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3152
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 20 at 9:27PM
here you can search for anything which exists in the Debenu ressources:
https://www.debenu.com/docs/pdf_library_reference/Search.php

Cheers,
Ingo

Back to Top
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 20 at 9:17AM
that seem working.

procedure TfrmDemo.Button1Click(Sender: TObject);
var
  SignProcessID: Integer;
  FldIndx : integer;
  ImgIndex : integer;
  Rslt : integer;
  tmpJpg : TJpegGraphic;
  Stream  : TMemoryStream;
begin

  if Not Assigned(ViewPrintQP) then
  begin
    ViewPrintQP := TDebenuPDFLibrary.Create;
    ViewPrintQP.UnlockKey(edtLicenseKey.Text);
  end;

  Rslt := ViewPrintQP.LoadFromFile('c:\aa\QuickPDF.pdf', '');
  if rslt <> 1 then
    beep;

(*
  Rslt := ViewPrintQP.AddStampAnnotationFromImage(50,50,50,50,'c:\aa\logo-2.jpg','mazluta','hanibaal',0,0,0,0);
  if rslt <> 1 then
    beep;
  Rslt := ViewPrintQP.SaveToFile('c:\aa\Quick2.pdf');
  if rslt <> 1 then
    beep;
*)

  FldIndx := ViewPrintQP.NewFormField('mazluta',6);

  ViewPrintQP.SetFormFieldBounds(FldIndx, 10, 400, 100, 100);
  ViewPrintQP.SetFormFieldHighlightMode(FldIndx, 2);

  tmpJpg := TJpegGraphic.Create;
  Try
    tmpJpg.LoadFromFile('c:\aa\logo-2.jpg');
    Stream  := TMemoryStream.Create;
    Try
      tmpJpg.SaveToStream(Stream);
      ImgIndex := ViewPrintQP.AddImageFromStream(Stream,0);
    Finally
      FreeAndNil(Stream);
    End;
  Finally
    FreeAndNil(tmpJpg);
  End;

  Rslt := ViewPrintQP.SelectImage(ImgIndex);
  if rslt <> 1 then
    beep;

  Rslt := ViewPrintQP.SetFormFieldSignatureImage(FldIndx,ImgIndex,0);
  if rslt <> 1 then
    beep;

  ViewPrintQP.SetNeedAppearances(0);
  ViewPrintQP.UpdateAndFlattenFormField(FldIndx);

  Rslt := ViewPrintQP.SaveToFile('c:\aa\Quick2.pdf');
  if rslt <> 1 then
    beep;
  ViewPrintQP.Free;
end;

Back to Top
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 20 at 9:19AM
now i want to add transparent image (i want the signature graphic image to be transparent).
is it possible ?

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3152
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 20 at 8:01PM
Try it ... then you'll know it.
Post the code if it works... then we'll know it, too ;-)

Cheers,
Ingo

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store