title: PDF box PNG image not supporting
body: <p>I am using PDF box to create PDF, I am trying to print image into pdf , it works all the format except PNG. Mycode as follows :</p>
  
  <pre><code>String image = "c:/image.png";                  
                                     PDXObjectImage ximage = null;
                    if( image.toLowerCase().endsWith( ".jpg" ) )
                    {
                        ximage = new PDJpeg(doc, new FileInputStream( image ) );
                    }
                    else if (image.toLowerCase().endsWith(".tif") || image.toLowerCase().endsWith(".tiff"))
                   {
                        ximage = new PDCcitt(doc, new RandomAccessFile(new File(image),"r"));
                   }
                   else
                    {
                        BufferedImage awtImage = ImageIO.read( new File( image ) );
                        ximage = new PDPixelMap(doc, awtImage);
                        throw new IOException( "Image type not supported:" + image );
                    }
  
                   PDPageContentStream contentStream = new PDPageContentStream(doc, page);
                    contentStream.drawImage( ximage, 20, 20 );
  </code></pre>
  
  <p>When ever I give png image it is going to the :</p>
  
  <pre><code>else
                        {
                            BufferedImage awtImage = ImageIO.read( new File( image ) );
                            ximage = new PDPixelMap(doc, awtImage);
                            //throw new IOException( "Image type not supported:" + image );
                        }
  </code></pre>
  
  <p>and showing image stream IO exception cant read image file. What changes am I need to make to accept png image also in this? Please help...</p>