Print options for AEM Mobile App article content | Community
Skip to main content
vishnupriyad264
April 11, 2018
Solved

Print options for AEM Mobile App article content

  • April 11, 2018
  • 2 replies
  • 2843 views

What are the possible print options to print either article/collection content from a AEM Mobile App? Are there any custom Cordova plug-ins to achieve this?

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 IvanMi1

Your best bet is to build a javascript "window.print();" command into your HTML article template.

There are a few Cordova plugins out there for print commands, but they all require that you add header files to the app. In this case it is often to add a button at the chrome level. AEM Mobile apps do not support this, as only Cordova extensions that can be called at the article level are allowed.

2 replies

IvanMi1Adobe EmployeeAccepted solution
Adobe Employee
April 12, 2018

Your best bet is to build a javascript "window.print();" command into your HTML article template.

There are a few Cordova plugins out there for print commands, but they all require that you add header files to the app. In this case it is often to add a button at the chrome level. AEM Mobile apps do not support this, as only Cordova extensions that can be called at the article level are allowed.

vishnupriyad264
April 12, 2018

Hi Ivan,

Thank you for explaining the options. I will add a button/link in to the HTML article template that calls the  javascript code "window.print();" upon the click of that button/link.

Regards,

Vishnu