Hi @anasustic Try to mock the service in your test class as mentioned here : https://taylor.callsen.me/unit-testing-aem-sling-models-and-servlets/ Hope this helps! Thanks,Kiran Vedantam.
Thanks for the question @rnaveen2 I have recently implemented similar use-case in my project. We have used headless chrome chrome --headless --disable-gpu --print-to-pdf https://www.chromestatus.com/https://developers.google.com/web/updates/2017/04/headless-chrome You can pass your HTML to headles...
Hi @Magicr Similar issue : https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dam-image-renditions-error-while-executing-the-folder-thumbnail/td-p/387339 Hope this helps! Thanks,Kiran Vedantam.
If you use the API, it should automatically create a temp file for you. Use the below code //CreateFile sample = File.createTempFile("sample", ".pdf");//DeleteFiles.delete(sample.toPath());Hope this helps. Thanks,Kiran Vedantam
Hi @chetan001 After downloading the assets, instead of downloading and keeping it in root folder, create temp file, push it to AEM DAM and delete the temp file. You can use java.io.file API for this. Hope this helps!Thanks,Kiran Vedantam.