title: Java: Create PDF pages from images using PDFBox 1 library
body: <p>I need to convert images (mainly JPEG) directly to PDF pages for a PDF document.<br>
  It may be that the images differ in size.</p>
  
  <p>Each PDF page should have the exact dimensions as the images.<br>
  So each page only contains the image in full resolution.</p>
  
  <p>How can this be achieved, that a page is set to the dimensions of the image/content?<br>
  Because I saw PDF files with different page sizes and orientations but how can this be done with PDFBox?</p>