- Posts: 35
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
SignField error
IP: 187.180.186.228
5 years 4 months ago #15294
by devit9ar
Replied by devit9ar on topic SignField error
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?
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?
IP: 149.129.55.87
5 years 4 months ago #15295
by radaee
Replied by radaee on topic SignField error
i have resolved this issue by modify method CommonUtil.createImageForm().
the old codes like:
new codes:
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.
the old codes like:
Code:
content.Create();
content.GSSave();
//draw contents on PageContent object
content.GSRestore();
Code:
content.Create();
content.GSSave();
content.GSSave();
//draw contents on PageContent object
content.GSRestore();
content.GSRestore();
i guess this may be remain issue for Acrobat, that draw image on signed field need wrap 2 save/restore operations.
IP: 187.180.185.97
5 years 4 months ago #15342
by devit9ar
Replied by devit9ar on topic SignField error
Sorry for the late reply. The code snippet you provided worked perfectly. That solved the problem.
Thanks!
Thanks!
Time to create page: 0.375 seconds