Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM HTML Workspace Print button was not working

srujan1981
Level 2
Level 2

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

1 Accepted Solution
Lavanya_Pejjayi
Correct answer by
Level 3
Level 3

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-pd... 

 

I hope this will helps.

 

Thanks,

View solution in original post

2 Replies
Mayank_Gandhi
Community Advisor
Community Advisor

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

Lavanya_Pejjayi
Correct answer by
Level 3
Level 3

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-pd... 

 

I hope this will helps.

 

Thanks,

View solution in original post