Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Render PDF form as HTML


Level 4

We are currently upgrading from LC ES 4 to AEM Forms 6.4 and are in the process of migrating our Flex workspace to the HTML workspace. We would also like to be able to render our XDP PDF Forms in HTML. We pre-fill our forms and add a form bridge using a custom action profile, so changing the start point action profile render process to HTML doesn't give the expected result.


Are there any resources out there that can offer assistance or pointers on this?

1 Accepted Solution


Level 2

Sounds like you need to create your own HTML Render service and use that in a custom render profile - depending on what the actual issue is with your render

7 Replies


Level 1

Here is a documentation which talks about "Migrating from Flex Workspace to AEM Forms workspace" as well as "HTML rendering of XDP Forms".


[0]: https://helpx.adobe.com/in/experience-manager/6-4/forms/using/html-workspace-overview.html


Level 4
I have read that page already, and it does not mention how to get a custom action profile rendered as HTML. As I mentioned in my post, changing the action profile does not render our form properly.


Employee Advisor

Hi Sean,


When you have an XDP then there are multiple ways to render it as HTML.

1. use HTML WS

2. Use the render profile

3. Upload it to forms Manager portal on OSGI side and use preview as HTML


Pretty much all the technique uses the default rendering profile and the URL construct for point 2 can be done using below document:



Now, as you see the the document you will notice that you need to use dataRef for dataXml and for custom profile you can follow the below link:



Regarding HTML WS question, please share more details.



Mayank Gandhi


Level 2

Sounds like you need to create your own HTML Render service and use that in a custom render profile - depending on what the actual issue is with your render


Level 4

When I use the HTML ws, my form is rendered in PDF format. We are using Workbench to set a custom action profile for when the task is assigned to a user. This custom action profile pulls information from our db that sets up the form in different ways based on the user.

If I change the action profile for the task to the default HTML profile, it will render the form in HTML, but none of the data I collect in my custom profile is added to the form.



Not sure if you found a solution but I can offer some explanations:

I have a complex process which uses a custom render orchestration which stitches XDPs together and modifies the data and then returns a PDF with reader extensions.


When I started to migrate this to HTML (experimental) I had to go about it completely differently because I did not get my form rendered and data prefilled. I re-designed my whole form to not being stitched (HTML renderer cannot pick it up - it must be accessible in the application or from the CRX repository)

First I added a prepareData process setting some basic values


And I then use the Render New HTML Form process in the profile


The main difference is that you do not get the HTML as a return byte-stream like the PDF but a URL that gets called in ws by the browser which in turn renders the HTML with merged data on the server and then displays it inside ws.