I\'m writing a java app that creates a pdf from scratch using the pdfbox library. I need to place a jpg image in one of the page.
I\'m using this code:
Looks like you're missing just a document.addPage(page) call.
document.addPage(page)
See also the ImageToPDF example class in PDFBox for some sample code.