Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
There are no product named Adobe Acrobat Reader DC Professional or Adobe Acrobat Reader DC Standard. What do you use?
Copy link to clipboard
Copied
You can’t add buttons in Reader – only in Standard and Professional.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now