What do you mean the portlet content? The fragment response to a portlet render request?
I mean only the portlet content of one portlet and not the whole portal site with the header, menu and footer and the other portlets....
The content rendered in a portlet window is broken down into two independent part
1. Portal decoration part ( the info bar, link to switch modes)
2. Markup fragment (response to each Portlet Render Request)
You want to print (on the console?) (1), (2) or both?
I want to print on the printer the markup fragment with all styles etc.
1. Create a new page
2. Put your portlet in that page
3. Open Page config, choose "Max Window"
4. Save the page
All Footers, Headers etc of the portal are not shown.
Furthermore, in the _portlet_ settings you can uncheck all decorations.
But I want a printer image on my portlet that the user can click and print so the portlet content.
You have to add this print icon on your portlet markup, that print icon link to the print page you created. (There is no built-in function to do this generically.)
Here you see an example how this is done with eXo Content's Content Detail Portlet: http://platform.demo.exoplatform.org/portal/private/acme/detail?content-id=/repository/collaboration/sites%20content/live/acme/web%20contents/Events/Event4
As i understand well that Andre wanted to be able to print the well-formed content of any portlet showing in a portal page. If so, we do not support yet such feature built-in GateIn. You are absolutely able to open JIRA for this
FYI, this looks like to be related to a new feature that supports to show an application ( portlet and gadget ) standalone which would be implemented in next coming version of GateIn ( not determined yet )