I have been using @warwound's PDFjet library https://www.b4x.com/android/forum/threads/pdfjetb4a.37843/ with great results. I have another project which I would like to draw a jpg image on the pdf page but have not had any success. I have attached the PDFjet sample project with the addition of adding a jpg. Does anybody have an idea as to why it is not working? Thanks for your help.
Problem solved. It was nothing to do with the library or code. The problem was that the jpg that i used was corrupt in some way not allowing it to be embedded.