title: How to exactly position an Image inside an existing PDF page using PDFBox?
body: <p>I am able to insert an Image inside an existing pdf document, but the problem is,</p>
  
  <ol>
  <li>The image is placed at the bottom of the page</li>
  <li>The page becomes white with the newly added text showing on it.</li>
  </ol>
  
  <p>I am using following code.</p>
  
  <pre><code>List&lt;PDPage&gt; pages = pdDoc.getDocumentCatalog().getAllPages();
  
  if(pages.size() &gt; 0){
      PDJpeg img = new PDJpeg(pdDoc, in);
      PDPageContentStream stream = new PDPageContentStream(pdDoc,pages.get(0));
      stream.drawImage(img, 60, 60);
      stream.close();
  }
  </code></pre>
  
  <p>I want the image on the first page.</p>