AEM Adaptive Form PDF Form | Community
Skip to main content
Level 3
November 21, 2025
Solved

AEM Adaptive Form PDF Form

  • November 21, 2025
  • 5 replies
  • 95 views

Hi all,

 

I have a PDF file for a form with logo, images and styling.

 

I want to be able to enter this form in AEM Adaptive Form while all the fields are looking part of the PDF file and not just fields separately.

 

How to create an XSD that could be used as a Model while creating an AEM Adaptive Form so that while entering form in AEM Adaptive Form, the PDF appears exactly same?

 

Is there a tutorial for a sample PDF?

I need a tutorial with just two fields, two images and for learning purpose only.

 

Appreciate all your responses.

 

Thanks,

RK.

Best answer by AmitVishwakarma

Hi ​@Rama_KrishnaNy ,

You cannot make an Adaptive Form that visually is the exact same PDF while authoring and filling it in AEM. Adaptive Forms are HTML, your PDF is a separate artifact.

What you can do (and what Adobe recommends) is:

  1. Keep the PDF for final output (Document of Record) – including logo, images, styling.
  2. Use XSD/XDP only as the data model for the Adaptive Form.
  3. Bind Adaptive Form fields to that model, so submitted data merges back into your PDF layout.

1. Create XSD from your existing PDF/XDP
If you have an XFA/XDP form:

  • Open the XDP in AEM Forms Designer.
  • Go to: File > Form Properties > Preview.
  • Click Generate Preview Data > Generate, save as form-data.xml.
  • Use any free online “XML to XSD” tool to generate form.xsd from form-data.xml.

https://experienceleague.adobe.com/en/docs/experience-manager-learn/forms/import-data-from-pdf-form/create-adaptive-form

https://experienceleague.adobe.com/en/docs/experience-manager-learn/forms/document-services/generate-interactive-dor

For a tiny learning example (2 fields), your XSD might look like:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://example.com/sample"
xmlns="http://example.com/sample"
elementFormDefault="qualified">

<xs:element name="sample" type="SampleType"/>

<xs:complexType name="SampleType">
<xs:sequence>
<xs:element name="firstName" type="xs:string"/>
<xs:element name="age" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

This is the same pattern shown in the sample loan-application XSD in Recommended data source-based prefill and submit workflows for adaptive forms.

 

2. Create an Adaptive Form using that XSD

  1. In AEM Author: Forms > Forms & Documents > Create > Adaptive Form.
  2. In the wizard, go to Form Model tab:
    • Choose Schema.
    • Upload/select your form.xsd.
    • Pick the root element.
  3. In the editor, open Data Model Objects panel and drag:
    • firstName => Text Box
    • age => Numeric Box
  4. For your two images and logo, add Image components and style via theme or panel CSS.

3. Keep exact PDF look as Document of Record (DoR)

To have the final PDF look exactly like your original form, you configure the Document of Record to use your XDP or PDF as template:

4. For your 2 fields + 2 images

  1. In Designer, build a tiny XDP/PDF:
    • Logo image at top.
    • Two small images in the body.
    • Two fields: firstName, age.
  2. Generate form-data.xml and then form.xsd.
  3. Create Adaptive Form with form.xsd as model.
  4. Bind the two Adaptive Form fields to firstName and age.
  5. Configure DoR to use that XDP as template.
  6. Preview, fill, and download PDF – it should look exactly like your original design.

Thanks,
Amit

5 replies

kautuk_sahni
Community Manager
Community Manager
February 2, 2026

@Pranay_M ​@abhilashy577678 ​@AmitVishwakarma ​@Stephan_Reiners Tagging you to see if you might want to share any best practices or insights on this topic. Your expertise would be greatly appreciated, thank you!

 

Kautuk Sahni
AmitVishwakarma
Community Advisor
AmitVishwakarmaCommunity AdvisorAccepted solution
Community Advisor
February 2, 2026

Hi ​@Rama_KrishnaNy ,

You cannot make an Adaptive Form that visually is the exact same PDF while authoring and filling it in AEM. Adaptive Forms are HTML, your PDF is a separate artifact.

What you can do (and what Adobe recommends) is:

  1. Keep the PDF for final output (Document of Record) – including logo, images, styling.
  2. Use XSD/XDP only as the data model for the Adaptive Form.
  3. Bind Adaptive Form fields to that model, so submitted data merges back into your PDF layout.

1. Create XSD from your existing PDF/XDP
If you have an XFA/XDP form:

  • Open the XDP in AEM Forms Designer.
  • Go to: File > Form Properties > Preview.
  • Click Generate Preview Data > Generate, save as form-data.xml.
  • Use any free online “XML to XSD” tool to generate form.xsd from form-data.xml.

https://experienceleague.adobe.com/en/docs/experience-manager-learn/forms/import-data-from-pdf-form/create-adaptive-form

https://experienceleague.adobe.com/en/docs/experience-manager-learn/forms/document-services/generate-interactive-dor

For a tiny learning example (2 fields), your XSD might look like:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://example.com/sample"
xmlns="http://example.com/sample"
elementFormDefault="qualified">

<xs:element name="sample" type="SampleType"/>

<xs:complexType name="SampleType">
<xs:sequence>
<xs:element name="firstName" type="xs:string"/>
<xs:element name="age" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

This is the same pattern shown in the sample loan-application XSD in Recommended data source-based prefill and submit workflows for adaptive forms.

 

2. Create an Adaptive Form using that XSD

  1. In AEM Author: Forms > Forms & Documents > Create > Adaptive Form.
  2. In the wizard, go to Form Model tab:
    • Choose Schema.
    • Upload/select your form.xsd.
    • Pick the root element.
  3. In the editor, open Data Model Objects panel and drag:
    • firstName => Text Box
    • age => Numeric Box
  4. For your two images and logo, add Image components and style via theme or panel CSS.

3. Keep exact PDF look as Document of Record (DoR)

To have the final PDF look exactly like your original form, you configure the Document of Record to use your XDP or PDF as template:

4. For your 2 fields + 2 images

  1. In Designer, build a tiny XDP/PDF:
    • Logo image at top.
    • Two small images in the body.
    • Two fields: firstName, age.
  2. Generate form-data.xml and then form.xsd.
  3. Create Adaptive Form with form.xsd as model.
  4. Bind the two Adaptive Form fields to firstName and age.
  5. Configure DoR to use that XDP as template.
  6. Preview, fill, and download PDF – it should look exactly like your original design.

Thanks,
Amit

Amit Vishwakarma - Adobe Commerce Champion 2025 | 16x Adobe certified | 4x Adobe SME
Adobe Employee
February 3, 2026

Hi ​@Rama_KrishnaNy,

Thanks for your question.

In AEM Forms, an XSD can define the data model (fields and structure) for an Adaptive Form, but it does not carry layout, images, or styling from the original PDF. To get both correct data binding and a PDF that looks like your existing form, we recommend the following approach:

  1. Convert the PDF to XDP in AEM Forms Designer, preserving your exact layout (logo, images, fonts, spacing).
  2. Generate sample XML from the XDP, then create an XSD from that XML (using any standard XML→XSD tool).
  3. Create an Adaptive Form based on this XSD so the fields are correctly bound.
  4. Configure the Adaptive Form’s Document of Record (DoR) to use the original XDP as the template. This keeps the online form responsive while the generated PDF matches your original form exactly.

For a simple learning example (two fields and two images), we suggest starting with a small PDF, going through the above steps, and then styling the Adaptive Form with a template/theme to visually align it with the PDF.

Thanks
Pranay

Level 1
February 3, 2026

@Rama_KrishnaNy  -  I hope this helps - 

1. I believe for your requirement to convert you can make use of AFCS - This Ai backed forms conversion utility will convert your PDF almost exactly look like - AEM Forms services.


https://experienceleague.adobe.com/en/docs/aem-forms-automated-conversion-service/using/configure-service#servicepack


2. Using/creating XSD alone cannot make the web form look like a PDF -  You need to club it for designing using Adobe Lifecycle Designer/AEM form designer to manual add images and pass through DoR for pdf generation.
 
​cc- @kautuk_sahni 

kautuk_sahni
Community Manager
Community Manager
February 17, 2026

@Rama_KrishnaNy I wanted to follow up and see if your issue has been resolved. If you were able to find a solution—either from the responses above or on your own—we’d appreciate it if you could share the details for the benefit of others. Additionally, if any reply was helpful, marking it as accepted helps future members quickly identify effective solutions. Thank you for helping improve the community experience.

Kautuk Sahni