title: CUPS Linux: Help printing these media types: MS Excel, MS Word and HTML
body: <p>I need to print MS Excel, MS Word and HTML files in a Linux CUPS server. When i try to print thses media types following occurs and this is what i've found till now:</p>
  
  <ul>
  <li><p>For MS Excel and MS Word files:</p>
  
  <p>When i try to print a file like these the error output is:</p>
  
  <pre><code>alvaro@alvaro-VM:~$ lp -d test_printer -o document-format=application/msword ptest.doc
  lp: Unsupported format 'application/msword'!
  </code></pre>
  
  <p>or, the same:</p>
  
  <pre><code>alvaro@alvaro-VM:~$ lp -d test_printer  ptest.doc
  lp: Unsupported format 'application/msword'!
  </code></pre>
  
  <p>What i've found searching arround is that supposedly it is possible to use a <em>CUPS filter</em>, in this       case the one i've found is called "<em>officetop</em>" (<a href="http://sourceforge.net/projects/cupsaddons/files/officetops_or_pdf/" rel="noreferrer">sourceforge/download link</a>), taht would be possible to print MS OFFICE files. The problem i have with this "officetop" filter is that i don't know how to install it or counfigure it or whatever it needs to make it work and i couldn't find any tutorial or guide. So i wiil appreciate any help on this. Do you recommend use this filter to do this task? i'm open to any alternative solution.</p></li>
  <li><p>For HTML files:</p>
  
  <p>As a first test i made:</p>
  
  <pre><code>alvaro@alvaro-VM:~$ lp -d test_printer  -o document-format=text/html index.html 
  the requested id is test_printer-105 (1 archivo(s))
  </code></pre>
  
  <p>And, which gave the same result:</p>
  
  <pre><code>alvaro@alvaro-VM:~$ lp -d test_printer  index.html 
  the requested id is test_printer-106 (1 archivo(s))
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;        
  &lt;html&gt;&lt;body&gt;&lt;h1&gt;It works!&lt;/h1&gt;
  &lt;p&gt;This is a html print test.&lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Result: on the printed sheet you can see just de html code instead the formated text.</p>
  
  <p>EDIT: If i print a web page from the web browser like chrome it gets well printed but If i download the web page with the browser option "Save web page as" and then issue *lp -d test_printer  index.html* occours the same i mentioned before, just the html code gets printed.</p>
  
  <p>Please help on this. what I want is to get the formated text it is posible. It is also possible to print HTML+CSS?.</p></li>
  </ul>
  
  <p>Thank you very much guys.</p>
  
  <p>Regards.  </p>
  
  <p>PD: sorry about my english.</p>