PDF File could not be generated - AEM Guides - DITA Implementation
Hi AEM Community,
I am new to Guides and currently doing a POC on setting up simple DITA implementation wherein we generate a PDF using DITA Template.
I have installed AEM Guides 4.2 from the software distribution and got access to the Guides in Navigation.
I have created a new folder "Test PDF Template" under dita-templates/pdf where we had 3 folders (Basic, Hi-Tech and Prime) already created.
I added 2 DITA Topics and 1 Dita Map as shown below -

When I try to output this folder/template to PDF Preset, I get the error "PDF Generation Failed" with below logs -

[fop] [ERROR] Anttask - Error rendering fo file: D:\Project\AEM_Author\crx-quickstart\profiles\ditamaps\ditamap16299010202468616354\temp\temp20230517200714751\topic.fo <org.apache.fop.apps.FOPException: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:-1)
[fop] net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:-1)>org.apache.fop.apps.FOPException: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:-1)
[fop] net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:-1)
BUILD FAILED
D:\Project\AEM_Author\crx-quickstart\profiles\ditaot--b1aad0a7-9079-e56c-1ed8-6fcababe8166\DITA-OT\plugins\org.dita.base\build.xml:31: The following error occurred while executing this line:
D:\Project\AEM_Author\crx-quickstart\profiles\ditaot--b1aad0a7-9079-e56c-1ed8-6fcababe8166\DITA-OT\plugins\org.dita.pdf2\build.xml:151: The following error occurred while executing this line:
D:\Project\AEM_Author\crx-quickstart\profiles\ditaot--b1aad0a7-9079-e56c-1ed8-6fcababe8166\DITA-OT\plugins\org.dita.pdf2.fop\build_fop.xml:156: [PDFX013F][FATAL] The PDF file 'build-Dummy-Map/Dummy-Map.pdf' could not be generated.
Can someone help what is wrong in the above approach?
@frameexpert, @divrajsingh, @vivekkumar, @punagpal, @kautuk_sahni
Thanks,
Rohan Garg

