Need to download the current page | Adobe Higher Education
Skip to main content
kalyan_chakrav1
Level 2
September 4, 2019
Beantwortet

Need to download the current page

  • September 4, 2019
  • 6 Antworten
  • 3878 Ansichten

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

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von antoniom5495929

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

6 Antworten

Umesh_Sondhi
Level 4
September 4, 2019

Hi

Can you please tell which format u want .

thanks

Adobe Employee
September 4, 2019

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

[1] The Page Exporter

kalyan_chakrav1
Level 2
September 4, 2019

I need to download the page in pdf

antoniom5495929
Level 7
September 4, 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

Adobe Employee
September 4, 2019
Umesh_Sondhi
Level 4
September 5, 2019

Hi

You can check this thread Convert AEM page to PDF