Hi all
We're in the process of restructuring our WebHelp and are adding some user guides that were previously in separate PDFs as individual topics. This means that users are very likely to want to print these topics out. We use one of the premium pack skins (with a few tweaks) and so the print function is available, but we would ideally like our company logo to appear on the 'print' page (so it looks more official). I experimented with adding a logo into the topic header, but this looked bad in the topic and didn't show after pressing print anyway. Has anyone tried to do this before or does anyone have any recommendations?
Many thanks,
Ola
Printing from WebHelp
Moderators: Alexander Halser, Tim Green
-
- Posts: 16
- Joined: Mon Mar 11, 2013 4:39 pm
Printing from WebHelp
Support Executive/Technical Author
Covalent Software
Covalent Software
- Tim Green
- Site Admin
- Posts: 23189
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Printing from WebHelp
Hi Ola,
The trick is to put the logo in the topic page template in the skin and include CSS so that it is only visible when it is printed. Then it is not in the way for normal viewing. To do this you need to add two snippets of CSS.
These examples assume that your logo is inside a div with the ID "logowrapper, i.e.
Then add these CSS snippets to hide the logo on the screen and show it in printouts, along with any other formatting you need for your logo to size and position it:
See this page on W3Schools for details on using media types in CSS like this:
http://www.w3schools.com/css/css_mediatypes.asp
The trick is to put the logo in the topic page template in the skin and include CSS so that it is only visible when it is printed. Then it is not in the way for normal viewing. To do this you need to add two snippets of CSS.
These examples assume that your logo is inside a div with the ID "logowrapper, i.e.
Code: Select all
<div id="logowrapper"><img src="yourlogo.png" border="0" /></div>
Code: Select all
@media screen{
div#logowrapper {
display: none;}
}
@media print {
div#logowrapper {
display: block;}
}
http://www.w3schools.com/css/css_mediatypes.asp
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 16
- Joined: Mon Mar 11, 2013 4:39 pm
Re: Printing from WebHelp
Hi Tim
Thank you so much for this! It's working beautifully and is a much more elegant solution than I hoped could be achieved.
Kind regards,
Ola
Thank you so much for this! It's working beautifully and is a much more elegant solution than I hoped could be achieved.
Kind regards,
Ola
Support Executive/Technical Author
Covalent Software
Covalent Software