Expand my Community achievements bar.

Generating tagged PDF/document of record from AEM Forms.

Avatar

Level 4

We have an adaptive form that outputs a document of record. Currently the PDF that is produced by AEM is not tagged at all, i.e. heading, paragraph text etc. tags do not exist in the structure of the PDF.  I found this documentation about how to enable tagging via a custom CXI file, but the ;Services -> Forms' option that is mentioned in this document doesn't exist in AEM 6.5.  Am I just missing where this lives, or is the documentation incorrect?

 

https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/administrator-help/co....

5 Replies

Avatar

Level 4

Thank you, but I'm not using AEM Cloud Service, this is an on-prem installation.  

Avatar

Level 4

Thank you. We tried this was well and got an error when AEM tries to generate the DOR. 

 

We prepared a .xci file with the 'config/present/pdf/tagged' property set to '1', uploaded the .xci file to a location in /conf using crx, then updated the path of the .xci file in 'Adaptive Forms and Interactive Communication Web Channel'.

 

Here's what the .xci file looked like:

<?xml version="1.0" encoding="UTF-8"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
   <config xmlns="http://www.xfa.org/schema/xci/3.0/" xmlns:xfa="http://www.xfa.org/schema/xci/3.0/">
      <present> <!--  [0..n]  -->
         <pdf> <!--  [0..n]  -->
            <tagged>1</tagged> <!-- 0|1 -->
         </pdf>
      </present>
   </config>
</xdp:xdp>

 

And here's the start of the error we saw in the logs when attempting to generate the DOR:

08.05.2024 13:54:44.384 *ERROR* [[0:0:0:0:0:0:0:1] [1715201684381] POST /content/forms/af/formNanme/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.addon.service.impl.GuidePDFSubmitHelperImpl Exception in getting Wrapped Parameter Map For Pdf Submit null
java.lang.NullPointerException: null

 

Avatar

Employee

Please attach full error stack trace. Also what path you're pasting for XCI file?