Problem viewing PDF file merged with FDF data
I have a web application that takes an empty PDF form and FDF data, populates the empty PDF form with FDF data(Key-value pairs) and sends this PDF file as response. Along with the FDF data , I also have some buttons that I add to the PDF form. These buttons have navigational URLs to work within the app. I add these buttons using javascript and FDFDoc API.
Here is the code snippet.
FDFDoc fdfDoc ( This comes in as input)
fdfDoc.SetJavaScriptAction(button.getButtonName(),
com.adobe.fdf.FDFActionTrigger.FDFUp, "this.submitForm(\""
+ button.getButtonURL() + "/openPDFAction.do"
+ "?pageAction=" + button.getButtonPageAction()
+ "&returnPage=" + button.getButtonActionPage()
+ button.getButtonParameterList()
+ "#FDF\",true,true);");
textButtons += "setBtnTxt('" + button.getButtonName() + "','"
+ button.getButtonTitle() + "','"
+ button.getButtonDescription() + "');\r";
fdfDoc.AddDocJavaScript("Onload", textButtons);
(The javascript is setting a label for the buttons and an forward URL upon click. )
The response is sent to the browser. When opened from the browser which is Internet Explorer 11, it opens with no data and the buttons that were added.
This happens only with these Adobe Acrobat Reader DC and Browser combinations.
Adobe Acrobat Reader DC Professional and IE 11 on Windows 7.
This does not happen with Adobe Acrobat Reader DC Standard or with Adobe Acrobat XI. I see the buttons and the data on the form if I have Adobe Acrobat XI /Adobe Acrobat Reader DC Standard with Windows 7 and IE 11.
Any ideas on troubleshooting the issue are appreciated.
Thanks,
Jyothi
