Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Missing images after rendering HTML form

Avatar

Level 3
Hi,



I have a xdp form, which merges with a XML data. I am able to render that to PDF no problem, and also I am able to render to HTML and write to the disk (say, c:\temp), but when I open up the html from c:\temp, images are not showing, how does the rendering process reference to those images inside the HTML.



Is it something to do with the Base URL I have to set?



Please advice, thanks in advance.



nw
1 Reply

Avatar

Former Community Member
Depends how you address the images in the original XDP in the first place. There is a setting in the Forms api that will tell it where to find associated files. I believe it is called BaseURL.