Hi,
I need to create an 'AcroForm/Interactive Form', where the user can enter data into it and send the data in XML via an email address or to a server url.
Therefore, I would need to use SUBMIT_XFDF method in PdfAction. But looking at the below code from com.lowagie.text.pdf.PdfAction:
/** Implements name actions. The action can be FIRSTPAGE, LASTPAGE,
* NEXTPAGE, PREVPAGE and PRINTDIALOG.
* @param named the named action
*/
public PdfAction(int named) {
put(PdfName.S, PdfName.NAMED);
switch (named) {
case FIRSTPAGE:
put(PdfName.N, PdfName.FIRSTPAGE);
break;
case LASTPAGE:
put(PdfName.N, PdfName.LASTPAGE);
break;
case NEXTPAGE:
put(PdfName.N, PdfName.NEXTPAGE);
break;
case PREVPAGE:
put(PdfName.N, PdfName.PREVPAGE);
break;
case PRINTDIALOG:
put(PdfName.S, PdfName._javascript_);
put(PdfName.JS, new PdfString("this.print(true);\r"));
break;
default:
throw new RuntimeException("Invalid named action.");
}
}
SUBMIT_XFDF is obviously not implemented for some reasons, although it is being declared in PdfAction. Am I missing something or is there other ways to achieve what I need without having SUBMIT_XFDF implemented in PdfAction?
I have tried setting _javascript_ action "mailto for form data" but it does not work. (the mailto for form itself, works tho). And trying to create a PDFAction(SUBMIT_XFDF) will obviously give me an "Invalid named action."
Are there any plans to implement SUBMIT_XFDF in PdfAction? Many thanks in advance.
Regards,
Chin Ann
Send instant messages to your online friends http://asia.messenger.yahoo.com
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
