title: How to print PDF, image and HTML documents from android device to a printer on wifi?
body: <p>I need to implement document printing functionality in my android app.
  I was able to print image file using the android printing framework code mentioned below :     </p>
  
  <pre><code>private void doPhotoPrint(Bitmap bigbitmap) 
  {
      PrintHelper photoPrinter = new PrintHelper(MainActivity.this);
      photoPrinter.setScaleMode(PrintHelper.SCALE_MODE_FIT);
      photoPrinter.printBitmap("droids.jpg - test print", bigbitmap);
  }
  </code></pre>
  
  <p>I went through the existing threads discussing the same question, but none of them help much.</p>
  
  <p>The issue I am facing is with other document types like PDF and HLML.
  It would be helpful if someone could give some insight on the same.</p>