Generate Interactive PDF using xdp and xml

sivaprasadreddy 15-10-2017

Hi All,

I'm trying to create Interactive PDF with using an xdp and associated xml data. I've followed below resource [1] to generate PDF form ad able to create non editable PDF. But i need to create Interactive PDF.

Is it possible to create Interactive PDF using XDP & XML data. If so, Please let us know the API we can use.

[1]: [Refer: Output Service section]

Thanks In Advance


Accepted Solutions (1)

Accepted Solutions (1)

TundraSteve 16-10-2017

You're attempting to created an interactive XFA based PDF form.  Are you going to be trying to load this in a browser?  If so you'll run into issues, you may want to look at rendering the form as HTML5 or using Adaptive Forms.  Let me know which direction you want to go.

Answers (4)

Answers (4)

sivaprasadreddy 16-10-2017

Thanks a lot @smacdonald2008​ for the information.

I'm writing AEM servlet to generate Interactive PDF. But I see in the document, ServiceClientFactory object is created using Connection properties.

As we are using AEM servlet, Do we need to  Create a ServiceClientFactory object using connection properites?

If not, can we just get the ServiceClientFactory object using @Reference ?

Properties connectionProps = new Properties();

            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, "http://[server]:[port]");


            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");

            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");

            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");


            //Create a ServiceClientFactory object

            ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);

Please advise.

sivaprasadreddy 16-10-2017

smacdonald2008​, you mean we can use OutputService itself to generate interactive PDF? Please correct me if i'm wrong.

I couldn't find any parameter which can passed to the output service API to define PDF being interactive or not. It would be great if you can provide me more details on this.