AEM HTML Workspace Print button was not working | Community
Skip to main content
Level 3
September 20, 2021
Solved

AEM HTML Workspace Print button was not working

  • September 20, 2021
  • 2 replies
  • 844 views

Hi Experts,

 

We had recently upgraded PDF forms to HTML5 forms in workspace application, but print button is not working.When I click on print button error message is showing like "Unable to generate PDF due to internal server error" 

 

I want HTML form with print option, please guide me.

 

Srujan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lavanya_Pejjayi

Hi srujan1981,

All the actions will not work in HTML preview and print button is one of them.

You will have to write custom code to achieve print functionality like calling  window.print()

 

It is not possible with out of the box features. the below article explains few of AEM developer experience 

https://experienceleague.adobe.com/docs/experience-manager-learn/forms/document-services/generate-pdf-from-mobile-form-submission-article.html?lang=en 

 

I hope this will helps.

 

Thanks,

2 replies

Mayank_Gandhi
Adobe Employee
Adobe Employee
September 21, 2021

@srujan1981 Designer print will not work in HTML. You can either download the pdf and print it or, call Window.print()

Lavanya_Pejjayi
Adobe Employee
Lavanya_PejjayiAdobe EmployeeAccepted solution
Adobe Employee
September 23, 2021

Hi srujan1981,

All the actions will not work in HTML preview and print button is one of them.

You will have to write custom code to achieve print functionality like calling  window.print()

 

It is not possible with out of the box features. the below article explains few of AEM developer experience 

https://experienceleague.adobe.com/docs/experience-manager-learn/forms/document-services/generate-pdf-from-mobile-form-submission-article.html?lang=en 

 

I hope this will helps.

 

Thanks,