Static PDF rendered using outputservice.generatePDFOutput has 'form' tags for text fields | Community
Skip to main content
Level 4
March 6, 2026
Question

Static PDF rendered using outputservice.generatePDFOutput has 'form' tags for text fields

  • March 6, 2026
  • 1 reply
  • 20 views

Hi,

I am facing an issue where the screen reader (NVDA) is reading out ‘edit unavailable read only’ for all the accessibility tags with <form> tags.

<form> tags are generated for all the text field objects from XDP.

Is there any way to prevent NVDA from reading this out loud or to prevent <form> tags being generated in the rendered static PDF using output service.

Appreciate any help on this topic.

 

    1 reply

    AmitVishwakarma
    Community Advisor
    Community Advisor
    March 6, 2026

    Hi ​@SmrithiGo 

    For static PDFs generated by OutputService.generatePDFOutput from XDP this is expected behavior and you cannot selectively stop it:

    Screen readers (like NVDA) interpret those <Form> tags as read‑only form controls, and the exact wording they speak (for example "edit unavailable read only") is controlled by the screen reader, not by AEM or Output Service.

    So your only real options are:

    There is no Output Service setting that both keeps a tagged static PDF and prevents NVDA from announcing those read‑only fields; that announcement is on the NVDA side.

    Amit Vishwakarma - Adobe Commerce Champion 2025 | 16x Adobe certified | 4x Adobe SME
    SmrithiGoAuthor
    Level 4
    March 9, 2026

    Thanks for the detailed explanation ​@AmitVishwakarma.

     

    Is there any other APIs like Apache PDFbox, which can be used on the rendered tagged PDF,  to replace the <form> tags with any other meaning tags like <P>?

    AmitVishwakarma
    Community Advisor
    Community Advisor
    March 9, 2026

    Hi ​@SmrithiGo 
    There's no AEM Forms / Output Service API to change the <Form> tags in the tagged PDF; generatePDFOutput will always emit them for fields when tagging is enabled. You can post‑process the PDF with generic libraries like Apache PDFBox or iText to edit the structure tree (e.g., change Form to P), but that's completely outside AEM support, easy to break accessibility, and still doesn't guarantee NVDA will change its announcement.
    In practice the supported options remain: keep the tagged PDF as Output generates it, or turn off tagging and/or remediate the tags manually in Acrobat or another accessibility tool.

    Amit Vishwakarma - Adobe Commerce Champion 2025 | 16x Adobe certified | 4x Adobe SME