Need to download the current page

Avatar

Avatar

kalyan_chakrav1

Avatar

kalyan_chakrav1

kalyan_chakrav1

03-09-2019

Hi,

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,

Kalyan

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

antoniom5495929

Avatar

antoniom5495929

antoniom5495929

04-09-2019

Hi,

probably you don't need to use some strange functionality but just implement this in front-end stuff.

You can use a javascript framework which allow you to download the page in a pdf format.

E.g. https://codepen.io/AshikNesin/pen/KzgeYX , check into this code that probably could be helpful for your requirement.

Let us know.

Thanks,

Antonio

Answers (5)

Answers (5)

Avatar

Avatar

Umesh_Sondhi

MVP

Avatar

Umesh_Sondhi

MVP

Umesh_Sondhi
MVP

04-09-2019

Hi

You can check this thread Convert AEM page to PDF

Avatar

Avatar

berliant

Employee

Avatar

berliant

Employee

berliant
Employee

04-09-2019

Avatar

Avatar

kalyan_chakrav1

Avatar

kalyan_chakrav1

kalyan_chakrav1

04-09-2019

I need to download the page in pdf

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

04-09-2019

You can leverage the page exporter utility[1] and download the page by changing ".html" to ".export.zip"

[1] The Page Exporter

Avatar

Avatar

Umesh_Sondhi

MVP

Avatar

Umesh_Sondhi

MVP

Umesh_Sondhi
MVP

03-09-2019

Hi

Can you please tell which format u want .

thanks