Sign in to Community
Sign in to view all badges
As we have requirement when we click on the download icon it should get download the current page with styles,js,html and assets on the page.
Could you please share the sample code regarding the above use case and help me on this.
Thanks & Regards,
probably you don't need to use some strange functionality but just implement this in front-end stuff.
E.g. https://codepen.io/AshikNesin/pen/KzgeYX , check into this code that probably could be helpful for your requirement.
Let us know.
You can check this thread Convert AEM page to PDF
A possible solution to download a PDF: Experiencing Adobe Experience Manager - Day CQ: AEM 61 - Add "Save as PDF" button to the Assets Cons...
Also a similar question was discussed here: Create a PDF out of an AEM page
I need to download the page in pdf
You can leverage the page exporter utility and download the page by changing ".html" to ".export.zip"
 The Page Exporter
Can you please tell which format u want .