Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM HTML Workspace Print button was not working

Avatar

Level 3

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

Avatar

Correct answer by
Employee

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

Avatar

Employee Advisor

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

Avatar

Correct answer by
Employee

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,