cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe interactive form

Former Member
0 Kudos

Hi Experts,

I have an application that is used to fill an online pdf file. Part of this form is filled by another application.

The users fills up the remaining part and send it via mail which also works fine. In this form I also have to add the time and date.

I use the following code to do so.


Date date = new Date(System.currentTimeMillis());
Time time = new Time(System.currentTimeMillis());
wdContext.currentAuthorisationRequestElement().setApprovalDate(date);
wdContext.currentAuthorisationRequestElement().setApprovalTime(time);

I am not getting this values on the form. This

can anybody suggest how to go about this.

Regards

Abdullah

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Experts,

Solved this problem. In usePdf mode we cannot modify the pdf as we can in the updateDataInPdf mode. So a work around for this was to use

WDInteractiveFormHelper.transferPDFDataIntoContext(byte[] pdfSource, IWDNode targetNode);

when I extracted the pdf Binary from the mail Attachment.

A more detailed explanation can be found out at

Regards

Abdullah

Former Member
0 Kudos

Hi,

I think this code fine to set the values:

wdContext.currentAuthorisationRequestElement().setApprovalDate(date);

wdContext.currentAuthorisationRequestElement().setApprovalTime(time);

But Check this code

import java.util.*;

import java.lang.*;

Date date = new date();

Time time = new Time();

try this, i hope this will work.

Thanks

Ravi Golla

Former Member
0 Kudos

Hi Experts,

I dont think there is anything wrong in the code. The problem I suppose lies in the mode of the pdf. In the first application, I use updateInPdf, where as in the second application, I am using usePdf. Probably that might be the issue. Still can anybody help me sort this issue.

Regards

Abdullah