Hi All,
We are using AEM Forms (6.2) for rendering our business forms.
To render the input PDF forms with data, we pass in XML data. Once rendered we get a static output PDF, without any issues:
JAVA logic used is:
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(createConnectionProperties());
OutputClient outputClient = new OutputClient(myFactory);
OutputResult outputDocument = outputClient.generatePDFOutput2(TransformationFormat.PDF, null,formDocument, null, renderOptionsSpec, xmlDataDocument);
document = outputDocument.getGeneratedDoc();
Sample PDF Output with all text fields as read only:

Recently, we got a new requirement for rendering forms with interactive fields on it. In order to resolve this use case we started using,
below JAVA logic:
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(createConnectionProperties());
FormsServiceClient formsServiceClient = new FormsServiceClient(myFactory);
formsServiceClient.resetCache();
FormsResult formResult = formsServiceClient.renderPDFForm2(formDocument, xmlDataDocument,
null, null, null);
document = formResult.getOutputContent();
This new input PDF form now has one "read only" & one "user entered" text fields with data bindings.
When this input PDF form is rendered with an input XML data using formsServiceClient.renderPDFForm2() method, we are getting the PDF output.
When this new output PDF form is previewed using any browser (chrome/safari/firefox) or any of the browser based viewer components, it is not showing any data on it.
Sample PDF Output with one text field as read only and one field as user entered:

But this new output PDF with interactive fields is getting previewed with data only on "Adobe Acrobat Reader".
Sample PDF Output with one text field as read only and one field as user entered on Adobe Acrobat Reader:

I would really appreciate if some body can help me in this regard.
Our requirement is to preview the interactive PDF form on our internal viewer component (which is based out of browser PDF viewer), where we can see data on other read only fields and enter the data on the interactive fields.
More Info:
AEM Forms version: 6.2
Designer Version: 6.2.0.20160331
Form saved as : Adobe static PDF Form (*.pdf)