SignField error - Page 3 - RadaeePDF.com - Results from #12
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

SignField error 2 weeks 3 days ago #15294

  • devit9ar
  • devit9ar's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Sorry for the late reply. I had other issues to solve and I wasn't able to come back to this problem.

I updated my RadaeeLib version and still have the same problems.
I'm using the following code to sign the Signature Field.


Document.DocForm form = CommonUtil.createImageForm(documento, signature, annotWidth, annotHeight);
File downloads = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
String certificado = downloads.getAbsolutePath() + "/file.p12";
m_annot.SignField(form, certificado, "123456", "ITGreen", "", "", "");

'signature' is a bitmap gerenated from a Wacom service that we use for capture signatures in our project.
I think the problem might be with 'createImageForm'. I'm not sure.
What do you think?

Please Log in or Create an account to join the conversation.

SignField error 2 weeks 3 days ago #15295

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1019
  • Karma: 43
  • Thank you received: 53
i have resolved this issue by modify method CommonUtil.createImageForm().
the old codes like:
content.Create();
content.GSSave();
//draw contents on PageContent object
content.GSRestore();
new codes:
content.Create();
content.GSSave();

content.GSSave();
//draw contents on PageContent object
content.GSRestore();

content.GSRestore();
yes, wrap one more save/restore of graphic state can resolve this issue.
i guess this may be remain issue for Acrobat, that draw image on signed field need wrap 2 save/restore operations.

Please Log in or Create an account to join the conversation.

SignField error 2 days 16 hours ago #15342

  • devit9ar
  • devit9ar's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Sorry for the late reply. The code snippet you provided worked perfectly. That solved the problem.
Thanks!

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum